|
From: Reid T. <Rei...@at...> - 2004-10-05 20:59:40
|
Carlos Chavez wrote: > If i remember well, there is a variable named errno, this > have the error after a system call fail, if you need a string > of the error, you can use perror or strerror. >=20 > Cheers, >=20 > On 5 Oct 2004 19:54:00 -0000, Curious Student > <est...@re...> wrote: >> In C, if fopen fails, is there a way to know why? >>=20 >> Thanks! >> Sathyaish fopen returns NULL if it fails and sets errno. reid |