示例#1
0
unsigned int testFormat(char *buf, const char *fmt, ...) {
  unsigned int count;
  va_list args;
  va_start(args, fmt);
  count = xvformat(put_char, (void *) &buf, fmt, args);
  va_end(args);
  *buf = 0;
  return count;
}
示例#2
0
void xprintf(const char *fmt, ...) {
  va_list args;
  va_start(args, fmt);
  xvformat(put_char, NULL, fmt, args);
  va_end(args);
}
示例#3
0
static void myPrintf(char *buf,const char *fmt,va_list args)
{
    xvformat(myPutchar,(void *)&buf,fmt,args);
    *buf = 0;
}
示例#4
0
void xvprintf(const char *fmt, va_list _args) {
  //va_list args;
  //va_copy(args, _args);
  xvformat(put_char, NULL, fmt, _args);
  //va_end(args);
}