move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / stdio / vsscanf.c
blob985002256e32e9a13124c8f0a355f09a4bfa2984
1 #include "stdio_impl.h"
3 static size_t do_read(FILE *f, unsigned char *buf, size_t len)
5 return __string_read(f, buf, len);
8 int vsscanf(const char *restrict s, const char *restrict fmt, va_list ap)
10 FILE f = {
11 .buf = (void *)s, .cookie = (void *)s,
12 .read = do_read, .lock = -1
14 return vfscanf(&f, fmt, ap);
17 weak_alias(vsscanf,__isoc99_vsscanf);