A Journey 2 Eternity

“errno” is never reset

Posted on: December 1, 2008

The external int variable errno contains the number of the most recent error or warning condition detected by the run-time library. To use this value, include the header file <errno.h>.

If no error or warning condition is detected, the value of errno is 0. After program execution starts, errno is never reset to 0 by the library. Programs that use errno for information about unusual conditions must set it to 0 before calling a library routine that may detect such a condition.

Advertisements
Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pages

Categories

December 2008
M T W T F S S
« Sep   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Blog Stats

  • 27,491 hits
%d bloggers like this: