1 /* This file defines one of the deprecated scanf variants. */ 2 #include <features.h> 3 #undef __GLIBC_USE_DEPRECATED_SCANF 4 #define __GLIBC_USE_DEPRECATED_SCANF 1 5 6 #include "nldbl-compat.h" 7 8 int 9 attribute_hidden scanf(const char * fmt,...)10scanf (const char *fmt, ...) 11 { 12 va_list arg; 13 int done; 14 15 va_start (arg, fmt); 16 done = __nldbl__IO_vfscanf (stdin, fmt, arg, NULL); 17 va_end (arg); 18 19 return done; 20 } 21