반응형
int
vsscanf(const char *str, const char *fmt, __va_list ap)
#include <stdio.h> #include <string.h> #include "local.h" /* ARGSUSED */ static int eofread(void *cookie, char *buf, int len) { return (0); } int vsscanf(const char *str, const char *fmt, __va_list ap) { FILE f; struct __sfileext fext; _FILEEXT_SETUP(&f, &fext); f._flags = __SRD; f._bf._base = f._p = (unsigned char *)str; f._bf._size = f._r = strlen(str); f._read = eofread; f._lb._base = NULL; return (vfscanf(&f, fmt, ap)); }
반응형