Neo wrote:
Hi friends
where will I get error descriptions for numorous errors I am getting on
my pgm?
What errors ? Compilation/Runtime ?
Generally during runtime, if a system call fails, it sets the global
variable 'errno' with a error number (generally defined in errno.h)
Now if you want to see the error descriptions you can use a standard
function 'strerror( errno );' which returns a pointer to char
describing the latest error in a string equivalent form.
You could probably print the error like -
printf ("Error = %s\n", strerror(errno));
- Ravi