home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Examples / Printer / HP_DeskJet_CMYK / sprintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  998 b   |  40 lines

  1. /*
  2.  * $Id: sprintf.c 44.1 1999/08/27 18:32:42 olsen Exp olsen $
  3.  *
  4.  * :ts=4
  5.  *
  6.  * COPYRIGHT:
  7.  *
  8.  *   Unless otherwise noted, all files are Copyright (c) 1999 Amiga, Inc.
  9.  *   All rights reserved.
  10.  *
  11.  * DISCLAIMER:
  12.  *
  13.  *   This software is provided "as is". No representations or warranties
  14.  *   are made with respect to the accuracy, reliability, performance,
  15.  *   currentness, or operation of this software, and all use is at your
  16.  *   own risk. Neither Amiga nor the authors assume any responsibility
  17.  *   or liability whatsoever with respect to your use of this software.
  18.  *
  19.  */
  20.  
  21. #include "global.h"
  22.  
  23. /*****************************************************************************/
  24.  
  25. VOID
  26. VSPrintf(STRPTR buffer, STRPTR formatString, va_list varArgs)
  27. {
  28.     RawDoFmt(formatString,varArgs,(VOID (*)())"\x16\xC0\x4E\x75",buffer);
  29. }
  30.  
  31. VOID
  32. SPrintf(STRPTR buffer, STRPTR formatString, ...)
  33. {
  34.     va_list varArgs;
  35.  
  36.     va_start(varArgs,formatString);
  37.     VSPrintf(buffer, formatString, varArgs);
  38.     va_end(varArgs);
  39. }
  40.