This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Newbie's problem with fopen
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Andre Kirchner <sieg1974 at yahoo dot com>, gcc-help at gcc dot gnu dot org
- Date: Sat, 27 Sep 2003 08:33:26 -0500
- Subject: Re: Newbie's problem with fopen
Hi Andre,
When opendir fails, what is errno set to?
You can use errno to diagnose the problem.
The mnemonic identifier associated with the errno value is in errno.h header file.
That should tell you what went awry.
Note: you seem to be failing to free the memory that opendir allocates. Eventually, you will run out of heap.
HTH,
--Eljay