home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
jËzyki_programowania
/
ace_basic
/
ace
/
include
/
dos
/
stdio.h
< prev
next >
Wrap
C/C++ Source or Header
|
1977-12-31
|
847b
|
34 lines
#ifndef DOS_STDIO_H
#define DOS_STDIO_H 1
/*
** stdio.h for ACE Basic
**
** Note: Translated to ACE by ConvertC2ACE
** @ MapMeadow Software, Nils Sjoholm
**
**
** Date: 09/02/95
**
**
*/
#define ReadChar() FGetC(Input())
#define WriteChar(c) FPutC(Output(), (c))
#define UnReadChar(c) UnGetC(Input(), (c))
/* next one is inefficient */
#define ReadChars(buf, num) FRead(Input(), (buf), 1, (num))
#define ReadLn(buf, len) FGets(Input(), (buf), (len))
#define WriteStr(s) FPuts(Output(), (s))
#define VWritef(format, argv) VFWritef(Output(), (format), (argv))
/* types for SetVBuf */
#define BUF_LINE 0 /* flush on \n, etc */
#define BUF_FULL 1 /* never flush except when needed */
#define BUF_NONE 2 /* no buffering */
/* EOF return value */
#define ENDSTREAMCH -1
#endif /* DOS_STDIO_H */