home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / aros / _kprintf.c next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  423 b   |  22 lines

  1. #include <exec/execbase.h>
  2. #include <proto/exec.h>
  3. #include <aros/asmcall.h>
  4.  
  5. /* All I need is a global variable SysBase */
  6. extern struct ExecBase *SysBase;
  7.  
  8. AROS_UFH2 (void, KPutChar,
  9.     AROS_UFHA(UBYTE, chr, D0),
  10.     AROS_UFHA(struct ExecBase *,SysBase,A3)
  11. )
  12. {
  13.     AROS_LIBFUNC_INIT
  14.     RawPutChar(chr);
  15.     AROS_LIBFUNC_EXIT
  16. }
  17.  
  18. void KPrintF(STRPTR format, ...)
  19. {
  20.     RawDoFmt(format,&format+1,(VOID_FUNC)KPutChar,SysBase);
  21. }
  22.