home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GERLIB_DEV08B.LHA / gerlib / amiga / normal / FPrintf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-12  |  1.6 KB  |  55 lines

  1. #include <exec/types.h>
  2. #include <dos/dos.h>
  3. #include <inline/dos.h>
  4. /* LONG FPrintf( BPTR fh, STRPTR format, ... ); */
  5. LONG FPrintf(BPTR fh, STRPTR fmt, LONG tag1,...)
  6. {
  7.     return(VFPrintf(fh, fmt, (LONG *) &tag1));
  8. }
  9.  
  10. /* LONG Printf( STRPTR format, ... ); */
  11. LONG Printf(STRPTR fmt, LONG tag1,...)
  12. {
  13.     return(VPrintf(fmt, (LONG *) &tag1));
  14. }
  15.  
  16. /* LONG VFWritef( BPTR fh, STRPTR format, ... ); */
  17. VOID FWritef(BPTR fh, STRPTR fmt, LONG tag1, ...)
  18. {
  19.     VFWritef(fh, fmt, (LONG *) &tag1);
  20. }
  21.  
  22.  
  23. /* LONG EasyRequest( struct Window *window, struct EasyStruct *easyStruct,
  24.     ULONG *idcmpPtr, ... );
  25. struct Window *BuildEasyRequest( struct Window *window,
  26.     struct EasyStruct *easyStruct, unsigned long idcmp, ... );
  27. ULONG DoGadgetMethod( struct Gadget *gad, struct Window *win,
  28.     struct Requester *req, unsigned long MethodID, ... );
  29. void SetWindowPointer( struct Window *win, unsigned long tag1, ... );
  30. ULONG CallHook( struct Hook *hookPtr, Object *obj, ... );
  31. ULONG DoMethod( Object *obj, unsigned long MethodID, ... );
  32. ULONG DoSuperMethod( struct IClass *cl, Object *obj, unsigned long MethodID,
  33.     ... );
  34. ULONG CoerceMethod( struct IClass *cl, Object *obj, unsigned long MethodID,
  35.     ... );
  36.  
  37. LONG printf( STRPTR fmt, ... );
  38. #define printf Printf
  39. LONG fclose( long stream );
  40. #define fclose Close
  41. LONG fgetc( long stream );
  42. #define fgetc FGetC
  43. LONG fprintf( long stream, STRPTR fmt, ... );
  44. #define fprintf FPrintf
  45. LONG fputc( long c, long stream );
  46. #define fputc FPutC
  47. LONG fputs( UBYTE *s, long stream );
  48. #define fputs FPuts
  49. LONG getchar( void );
  50. #define getchar(x) FGetC(Input())
  51. LONG putchar( long c );
  52. #define putchar(x) FPutC(Output())
  53. LONG puts( BYTE *s );
  54. #define puts(x) FPuts(Output(),x);
  55. */