summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vsscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/vsscanf.c')
-rw-r--r--lib/libc/stdio/vsscanf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c
index 540f290..4cfa662 100644
--- a/lib/libc/stdio/vsscanf.c
+++ b/lib/libc/stdio/vsscanf.c
@@ -35,12 +35,19 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
static char sccsid[] = "@(#)vsscanf.c 8.1 (Berkeley) 6/4/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#include <string.h>
+static int
+eofread __P((void *, char *, int));
+
/* ARGSUSED */
static int
eofread(cookie, buf, len)
@@ -52,14 +59,15 @@ eofread(cookie, buf, len)
return (0);
}
+int
vsscanf(str, fmt, ap)
const char *str;
const char *fmt;
_BSD_VA_LIST_ ap;
{
- int ret;
FILE f;
+ f._file = -1;
f._flags = __SRD;
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._r = strlen(str);
OpenPOWER on IntegriCloud