GNU used several extensions that were incompatible with C99 and POSIX, so they used alternate names for the standard functions. The result is that we need these to run standards-conformant programs that were linked with glibc.
17 lines
257 B
C
17 lines
257 B
C
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <wchar.h>
|
|
#include "libc.h"
|
|
|
|
int wscanf(const wchar_t *restrict fmt, ...)
|
|
{
|
|
int ret;
|
|
va_list ap;
|
|
va_start(ap, fmt);
|
|
ret = vwscanf(fmt, ap);
|
|
va_end(ap);
|
|
return ret;
|
|
}
|
|
|
|
weak_alias(wscanf,__isoc99_wscanf);
|