home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / gcc / libnixV0_8.lha / gnu / libnix-sources.lha / sources / amiga / misc / sprintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  272 b   |  11 lines

  1. #ifdef __GNUC__
  2. #include <stdarg.h>
  3. #include <inline/exec.h>
  4.  
  5. static const ULONG tricky=0x16c04e75; /* move.b d0,(a3)+ ; rts */
  6.  
  7. void sprintf(STRPTR buffer,STRPTR fmt,...)
  8. { RawDoFmt(fmt,(ULONG *)&fmt+1,(void (*)())&tricky,buffer); } /* Not very clean, but ... */
  9.  
  10. #endif
  11.