:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / msvcrt / conio.h
1 /*
2  * conio.h
3  *
4  * Low level console I/O functions. Pretty please try to use the ANSI
5  * standard ones if you are writing new code.
6  *
7  * This file is part of the Mingw32 package.
8  *
9  * Contributors:
10  *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
11  *
12  *  THIS SOFTWARE IS NOT COPYRIGHTED
13  *
14  *  This source code is offered for use in the public domain. You may
15  *  use, modify or distribute it freely.
16  *
17  *  This code is distributed in the hope that it will be useful but
18  *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
19  *  DISCLAMED. This includes but is not limited to warranties of
20  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21  *
22  * $Revision$
23  * $Author$
24  * $Date$
25  *
26  */
27
28 #ifndef __STRICT_ANSI__
29
30 #ifndef _CONIO_H_
31 #define _CONIO_H_
32
33 #ifdef  __cplusplus
34 extern "C" {
35 #endif
36
37
38 char*   _cgets (char* szBuffer);
39 int     _cprintf (const char* szFormat, ...);
40 int     _cputs (const char* szString);
41 int     _cscanf (char* szFormat, ...);
42
43 int     _getch (void);
44 int     _getche (void);
45 int     _kbhit (void);
46 int     _putch (int cPut);
47 int     _ungetch (int cUnget);
48
49
50 #ifndef _NO_OLDNAMES
51
52 #define getch                   _getch
53 #define getche                  _getche
54 #define kbhit                   _kbhit
55 #define putch(cPut)             _putch(cPut)
56 #define ungetch(cUnget)         _ungetch(cUnget)
57
58 #endif  /* Not _NO_OLDNAMES */
59
60
61 #ifdef  __cplusplus
62 }
63 #endif
64
65 #endif  /* Not _CONIO_H_ */
66
67 #endif  /* Not __STRICT_ANSI__ */