How about a `gprintf' for Turbo C

Devin_E_Ben-Hur at cup.portal.com Devin_E_Ben-Hur at cup.portal.com
Mon Apr 18 09:51:50 AEST 1988


#include <stdarg.h>
#include <graphics.h>
#include <stdio.h>

int gprintf(char *format, ...)
{
  char buf[81];
  int ret;
  va_list args;

  va_start(args,format);
  ret = vsprintf(buf,format,args);
  outtext(buf);
  va_end(args);
  return ret;
}



More information about the Comp.lang.c mailing list