#include <stdio.h> |
#include <io.h> |
int main( void ) |
{ |
int handle; |
handle = fileno(stdprn); |
if (isatty(handle)) |
printf ( "Handle %d is a device type\n" , handle); |
else |
printf ( "Handle %d isn't a device type\n" , handle); |
return 0; |
} |