#include <crtdll/stdio.h>
#include <crtdll/conio.h>

int
_cprintf(const char *fmt, ...)
{
  int     cnt;
  char    buf[ 2048 ];		/* this is buggy, because buffer might be too small. */
  va_list ap;
  
  va_start(ap, fmt);
  cnt = vsprintf(buf, fmt, ap);
  va_end(ap);
  
  _cputs(buf);
  return cnt;
}
