|
|
1.1 root 1: /*
2: * libc/stdio/sscanf.c
3: * ANSI-compliant C standard i/o library.
4: * sscanf()
5: * ANSI 4.9.6.6.
6: * Formatted input from string.
7: */
8:
9: #include <stdio.h>
10: #include <stdarg.h>
11:
12: int
13: sscanf(s, format) const char *s; const char *format;
14: {
15: va_list args;
16: register int count;
17: FILE file;
18: _FILE2 file2;
19:
20: file._f2p = &file2;
21: va_start(args, format);
22: _stropen(s, (int)strlen(s), &file);
23: count = _scanf(&file, format, args);
24: va_end(args);
25: return count;
26: }
27:
28: /* end of libc/stdio/sscanf.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.