tobold.org

correct • elegant • free

△ Comp.lang.c △

◅ Static scoping in BCPL

Bug Hunt Help! ▻

fopen doesn't open!

In article <3dc1dc$8r5@news.arc.nasa.gov>, T.K. McCarthy
<mccarthy@quest.arc.nasa.gov> wrote:
>Subject: Re: fopen doesn't open!
>What might I be doing wrong?  Thank you very much for your help.

Omitting to check the return value of the fopen() call, and to call
perror() when it is NULL.

Tim.
--
Tim Goodwin        | "System V wasn't going to go away just because POSIX
Public IP Exchange | said so.  (More's the pity.)" -- Henry Spencer

Original headers:

From: tim@pipe.pipex.net (Tim Goodwin)
Newsgroups: comp.lang.c
Subject: Re: fopen doesn't open!
Date: 22 Dec 1994 14:58:15 -0000
Organization: PIPEX, 216 Science Park, Cambridge, England
Message-ID: <3dc467$2lm@pipe.pipex.net>
References: <3dc1dc$8r5@news.arc.nasa.gov>

△ Comp.lang.c △

◅ Static scoping in BCPL

Bug Hunt Help! ▻