Character and String Input/Output
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _cgets │ "conio.h" │ _cgets
│ Reads a │
│ │ │ │ string │
│ │ │ │ from the │
│ │ │ │ keyboard │
│ │ │ │ into │
│ │ │ │ locations │
│ │ │ │ given by │
│ │ │ │ argu- │
│ │ │ │ ments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _cprintf │ "conio.h" │ _cprintf
│ Formats │
│ │ │ │ and sends │
│ │ │ │ a series │
│ │ │ │ of char- │
│ │ │ │ acters │
│ │ │ │ and │
│ │ │ │ values to │
│ │ │ │ the │
│ │ │ │ screen. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _cputs │ "conio.h" │ _cputs
│ Writes a │
│ │ │ │ string │
│ │ │ │ directly │
│ │ │ │ to the │
│ │ │ │ screen. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _cscanf │ "conio.h" │ _cscanf
│ Reads │
│ │ │ │ data from │
│ │ │ │ the key- │
│ │ │ │ board │
│ │ │ │ into │
│ │ │ │ locations │
│ │ │ │ given by │
│ │ │ │ argu- │
│ │ │ │ ments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _getch │ "conio.h" │ _getch
- _getche │ Reads a │
│ │ │ │ single │
│ │ │ │ character │
│ │ │ │ from the │
│ │ │ │ keyboard. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _getche │ "conio.h" │ _getch
- _getche │ Reads a │
│ │ │ │ single │
│ │ │ │ character │
│ │ │ │ from the │
│ │ │ │ keyboard │
│ │ │ │ and dis- │
│ │ │ │ plays it. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _kbhit │ "conio.h" │ _kbhit
│ Tests if │
│ │ │ │ a key has │
│ │ │ │ been │
│ │ │ │ pressed │
│ │ │ │ on the │
│ │ │ │ keyboard. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _putch │ "conio.h" │ _putch
│ Writes a │
│ │ │ │ character │
│ │ │ │ to the │
│ │ │ │ screen. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _ungetch │ "conio.h" │ _ungetch
│ Pushes a │
│ │ │ │ character │
│ │ │ │ back to │
│ │ │ │ the key- │
│ │ │ │ board. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Port Input/Output]
[Next: Direct Input/Output]