This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]