isblank() implementation.
[minix.git] / lib / libc / stdio / vsscanf.c
blob52075187b2cbb3d2833d11c2b129950155e8d88c
1 /*
2 * vsscanf - read formatted output from a string
3 */
5 #include <stdio.h>
6 #include <stdarg.h>
7 #include <string.h>
8 #include "loc_incl.h"
10 int vsscanf(const char *s, const char *format, va_list ap)
12 FILE tmp_stream;
14 tmp_stream._fd = -1;
15 tmp_stream._flags = _IOREAD + _IONBF + _IOREADING;
16 tmp_stream._buf = (unsigned char *) s;
17 tmp_stream._ptr = (unsigned char *) s;
18 tmp_stream._count = strlen(s);
20 return _doscan(&tmp_stream, format, ap);