Subversion Repositories Kolibri OS

Rev

Rev 8793 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <limits.h>
  2. #include <stdio.h>
  3. #include <stdarg.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6.  
  7. int vscanf(const char* format, va_list arg)
  8. {
  9.     static char scanf_buffer[STDIO_MAX_MEM];
  10.     gets(scanf_buffer);
  11.     return vsscanf(scanf_buffer, format, arg);
  12. };
  13.  
  14. int scanf(const char* format, ...)
  15. {
  16.     va_list arg;
  17.     va_start(arg, format);
  18.     int n = vscanf(format, arg);
  19.     va_end(arg);
  20.     return n;
  21. }
  22.