15 lines
241 B
C
15 lines
241 B
C
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
#include <errno.h>
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
FILE *fp;
|
||
|
|
||
|
fp = fopen( "file.nam", "r" );
|
||
|
if( fp == NULL ) {
|
||
|
printf( "Unable to open file: %s\n",
|
||
|
strerror( errno ) );
|
||
|
}
|
||
|
}
|