write a character to the console
#include <conio.h> int putch( int c );
The putch() function writes the character specified by the argument c to the console.
The character written.
#include <conio.h>
#include <stdio.h>
void main()
{
FILE *fp;
int c;
fp = fopen( "file", "r" );
if ( fp != NULL ) {
while( (c = fgetc( fp )) != EOF )
putch( c );
}
fclose( fp );
}
WATCOM
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
errno, getch(), getche(), kbhit(), ungetch()