"fopen" call...

Michael C. Shultz ringworm01 at gmail.com
Thu Dec 15 13:44:54 PST 2005


On Thursday 15 December 2005 13:41, Vasilkov Vasily wrote:
> Hi all..
>     this is the part of my source
> ************
>     FILE *source;
>     source = fopen("/home/user/test.c", "r");
>     if (source) {
>       printf("fopen error");
>       exit(0);
>     };
> ************
>   file "/home/user/test.c" exists and its access mode is 777..., but
>   when I run program, I get "fopen error" message...
>
>   Can anybody explain me this subj?
>
>
Try  

if(source == NULL )


-Mike


More information about the freebsd-questions mailing list