| | One of the many interesting functions prototyped in STDIO.H is a function called perror( ). The function prints to the stderr stream the system error message for the last library routine called that generated an error. It does this by using errno and _sys_errlist, prototyped in STDLIB.H. The _sys_errlist value is an array of error message strings. The errno value is an index into the message string array and is automatically set to the index for the error generated. The number of entries in the array is determined by another constant, -_sys_nerr, also defined in STDLIB.H. | | |