mirror of https://github.com/diegocr/libnix.git
16 lines
357 B
C
16 lines
357 B
C
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <strsup.h>
|
|
|
|
int vsscanf(const char *s,const char *format,va_list args)
|
|
{ FILE buffer;
|
|
buffer.p=buffer.buffer=(char *)s;
|
|
buffer.incount=strlen(s);
|
|
buffer.outcount=0;
|
|
buffer.flags=__SSTR|__SRD;
|
|
buffer.tmpp=NULL;
|
|
buffer.magic=FILEMAGICID;
|
|
return vfscanf(&buffer,format,args);
|
|
}
|