[Prev][Next][Index][Thread]

Re: fopen() 2



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


Follow-Ups: References: