#ifndef DOS_STDIO_H
#define DOS_STDIO_H

/*
    Copyright © 1995-2001, The AROS Development Team. All rights reserved.
    $Id: stdio.h 12757 2001-12-08 22:23:57Z chodorowski $

    Desc: Some stubs for ANSI-like stdio functions.
    Lang: english
*/

  /* Read one character from stdin. */
#define ReadChar()           FGetC(Input())
  /* Write one character to stdout. */
#define WriteChar(c)         FPutC(Output(),(c))
  /* Put one character back to stdin. Normally this is only guaranteed to
     work once. */
#define UnReadChar(c)        UnGetC(Input(),(c))
  /* Read a number of chars from stdin. */
#define ReadChars(buf,num)   FRead(Input(), (buf), 1, (num))
  /* Read a whole line from stdin. */
#define ReadLn(buf,len)      FGets(Input(), (buf), (len))
  /* Write a string to stdout. */
#define WriteStr(s)          FPuts(Output(), (s))
  /* Write a formatted string to stdout. */
#define VWritef(format,argv) VFWritef(Output(), (format), (argv))

/* DOS functions will return this when they reach EOF. */
#define ENDSTREAMCH -1

/* Buffering types for SetVBuf(). */
#define BUF_LINE 0 /* Flush at the end of lines '\n'. */
#define BUF_FULL 1 /* Flush only when buffer is full. */
#define BUF_NONE 2 /* Do not buffer, read and write immediatly. */

#endif /* DOS_STDIO_H */
