[Prev][Next][Index][Thread]
Re: fopen() 2
I need more information. Can you try open()ing it and see if that works?
It's possible your mount isn't working properly, etc., etc.
-Dave
Lo and behold, Facundo Arena once said:
>
> David G Andersen wrote:
>
> > Yes. fopen is in the minimal libc, and in the imported FreeBSD libc.
> > see libc/stdio/fopen.c and friends for implementation details. I don't
> > think we actually have an example which uses it, though.
> >
> > -Dave
>
> So, why the following code returns 0? (The file and the directory were
> created by me)
>
>
> FILE *users;
>
> if((users=fopen("/system/users.dat","r"))==NULL) {
> printf(">>>Error opening file!");
> }
>
> Thanks for all
>
> Facundo Arena
>
--
work: danderse@cs.utah.edu me: angio@pobox.com
University of Utah CS Department http://www.angio.net/
"If you haul a geek up a crack, you will bloody their fingers for a day...
If you teach a geek to climb, you will bloody their fingers for life."
References: