X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fvsscanf.c;h=3fc09cf3cdb2c04b1eef171f704e7e4657b4c2e1;hp=20893c97a7b6251f9c30beb49b0e766b181eddc6;hb=3c60673fd7479218b6f8069b848a1f5c2bd10114;hpb=45f394553721285e7bc6187419613c33915cce21 diff --git a/functions/stdio/vsscanf.c b/functions/stdio/vsscanf.c index 20893c9..3fc09cf 100644 --- a/functions/stdio/vsscanf.c +++ b/functions/stdio/vsscanf.c @@ -14,8 +14,17 @@ int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, va_list arg ) { - /* base, flag, n, i, current, s, width, prec, stream, arg */ - struct _PDCLIB_status_t status = { 0, 0, 0, 0, 0, (char *)s, 0, 0, NULL, NULL }; + /* TODO: This function should interpret format as multibyte characters. */ + struct _PDCLIB_status_t status; + status.base = 0; + status.flags = 0; + status.n = 0; + status.i = 0; + status.current = 0; + status.s = (char *) s; + status.width = 0; + status.prec = 0; + status.stream = NULL; va_copy( status.arg, arg ); while ( *format != '\0' )