/usr/share/z88dk/include/conio.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | /*
* Small C+ Library
*
* conio.h - old apps compatibility
* this helps expecially with the kbhit() instruction
* it exists on many old compilers; the mingw port has it
* on "conio.h", so here it is !
*
* stefano - 18/3/2004
*
* $Id: conio.h,v 1.1 2004/03/20 11:16:23 stefano Exp $
*/
#ifndef __CONIO_H__
#define __CONIO_H__
// this is used by getch, putch and ungetch.
#include <stdio.h>
#define getch() fgetc(stdin)
#define getche() getch() // not sure about this one...
#define putch(bp,fp) fputc(bp,fp)
// #define ungetch(bp) ungetc(bp,stdout) // this one doesn't work
#define kbhit() (getk() ? 1 : 0)
#endif /* _CONIO_H */
|