Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2005 13:44:33 -0800
From:      "Michael C. Shultz" <ringworm01@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        Vasilkov Vasily <chand0s@list.ru>
Subject:   Re: "fopen" call...
Message-ID:  <200512151344.33503.ringworm01@gmail.com>
In-Reply-To: <op.s1ug66y1fi920b@lazy.lazy.org>
References:  <op.s1ug66y1fi920b@lazy.lazy.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512151344.33503.ringworm01>