UNIX error reporting in the standard C library

Posted by Roger on Sep 8, 2006 1:32 AM EDT
IBM/developerworks; By Chris Herborth
Mail this story
Print this story

This article familiarizes you with the UNIX standard error reporting mechanism, the errno global variable. You'll also learn about a couple of associated global variables ( sys_nerr and sys_errlist) and the standard functions

Proper error detection and recovery is often ignored by UNIX developers. The lack of exceptions from the C language and the rudimentary error mechanisms from the standard C library certainly contribute to this. This article familiarizes you with the UNIX standard error reporting mechanism, the errno global variable. You'll also learn about a couple of associated global variables ( sys_nerr and sys_errlist) and the standard functions that help you report errors to the user and (hopefully) encourages you to report and handle errors in a user-friendly way.

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: IBM

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.