Fixes to comments.
[AROS.git] / compiler / include / dos / stdio.h
blob89b56af5b7f8690ce4a087ee7607688340f17589
1 #ifndef DOS_STDIO_H
2 #define DOS_STDIO_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Some stubs for ANSI-like stdio functions.
9 Lang: english
12 /* Read one character from stdin. */
13 #define ReadChar() FGetC(Input())
14 /* Write one character to stdout. */
15 #define WriteChar(c) FPutC(Output(),(c))
16 /* Put one character back to stdin. Normally this is only guaranteed to
17 work once. */
18 #define UnReadChar(c) UnGetC(Input(),(c))
19 /* Read a number of chars from stdin. */
20 #define ReadChars(buf,num) FRead(Input(), (buf), 1, (num))
21 /* Read a whole line from stdin. */
22 #define ReadLn(buf,len) FGets(Input(), (buf), (len))
23 /* Write a string to stdout. */
24 #define WriteStr(s) FPuts(Output(), (s))
25 /* Write a formatted string to stdout. */
26 #define VWritef(format,argv) VFWritef(Output(), (format), (argv))
28 /* DOS functions will return this when they reach EOF. */
29 #define ENDSTREAMCH -1
31 /* Buffering types for SetVBuf(). */
32 #define BUF_LINE 0 /* Flush at the end of lines '\n'. */
33 #define BUF_FULL 1 /* Flush only when buffer is full. */
34 #define BUF_NONE 2 /* Do not buffer, read and write immediatly. */
36 #endif /* DOS_STDIO_H */