Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2000 16:30:21 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de>
Cc:        questions@FreeBSD.ORG
Subject:   Re: How to debug library function at run-time actually to see what isit doing ?
Message-ID:  <20000728163021.K17222@fw.wintelcom.net>
In-Reply-To: <Pine.GSO.4.10.10007290054590.3827-100000@sun34>; from Ariel.Burbaickij@mni.fh-giessen.de on Sat, Jul 29, 2000 at 01:02:00AM %2B0200
References:  <Pine.GSO.4.10.10007290054590.3827-100000@sun34>

next in thread | previous in thread | raw e-mail | index | archive | help
* Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de> [000728 16:02] wrote:
> Situation :
> 
> fopen(name,"r")returns NULL  on existing file with proper permissions
>  I  know possible reasons but I  would like to know what is the reason
> in this special situation .How to see what the function is really doing
> and why it leads to seeting return value to NULL.

fopen will set errno on failure, see the errno manpage as well as
strerror.  That ought to help you diagnose what's going wrong.

-Alfred


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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