ack/lang/cem/libcc/stdio/sscanf.c
1987-03-31 10:45:53 +00:00

19 lines
456 B
C

/* $Header$ */
#include <stdio.h>
int sscanf (string, format, args)
char *string; /* source of data */
char *format; /* control string */
unsigned args; /* our args */
{
FILE _tempfile;
_tempfile._fd = -1;
_tempfile._flags = IO_READMODE + IO_UNBUFF;
_tempfile._buf = (unsigned char *) string;
_tempfile._ptr = (unsigned char *) string;
_tempfile._count = 32767;
return _doscanf (&_tempfile, format, &args);
}