panthema / 2006 / SDIOS06 / sdios06 / lib / libc / dietstdio.h (Download File)
/* diet stdio */

#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdarg.h>

/* ..scanf */
struct arg_scanf {
  void *data;
  int (*getch)(void*);
  int (*putch)(int,void*);
};

int __v_scanf(struct arg_scanf* fn, const char *format, va_list arg_ptr);

/* and ..printf */

struct arg_printf {
  void *data;
  int (*put)(void*,size_t,void*);
};

int __v_printf(struct arg_printf* fn, const char *format, va_list arg_ptr);