home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / 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.