home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / gle / gle / dvpprntf.c < prev    next >
C/C++ Source or Header  |  1992-11-29  |  558b  |  29 lines

  1. /* As varargs are so difficult to make work, I've put them
  2.    in this module by themselfs,  on a DEC5400 it was necessary
  3.    to compile this module using the native C compiler instead of
  4.    GCC
  5. */
  6.  
  7.  
  8.  
  9. #include <varargs.h>
  10.  
  11. #ifdef ultrix
  12. extern int printmem();
  13. #else
  14. int printmem(char *s, int n);
  15. #endif
  16. void pprintf(va_alist)
  17. va_dcl
  18. {
  19.         va_list args;
  20.         char *fmt;
  21.         char string[1024];
  22.  
  23.         va_start(args);
  24.         fmt = va_arg(args, char *);
  25.         vsprintf(string, fmt, args);
  26.         va_end(args);
  27.     printmem(string,strlen(string));
  28. }
  29.