C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
HP C Implementation-Defined Behavior
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
A-8
G.3.14 Library Functions
The hyphen character (-) is treated as just another character in the scan list if it is not
the first or the last character in the scan list.
tmpfile()
An open temporary file is removed if the program terminates abnormally.
errno
The macro errno is set to 4009 by the fgetpos() or ftell() function on failure.
A call to the perror() function prints the textual error message corresponding to the
value of the errno, optionally preceded by a specified string.
Memory
The behavior of the calloc(), malloc(), or realloc() function if the size
requested is zero is:
calloc(), malloc(), and realloc() return a NULL pointer.
abort()
When the abort() function is called, all open and temporary files are closed. The
temporary files are deleted.
exit()
The status returned by the exit() function if the value of the argument is other than
zero, EXIT_SUCCESS, or EXIT_FAILURE is:
The exit() function does not return.
getenv()
The environment names are always in uppercase. These four run-time parameters are
always present:
Parameter Description
STDIN Gives the name of the standard input file, stdin.
STDOUT Gives the name of the standard output file, stdout.
STDERR Gives the name of the standard error file, stderr.
DEFAULTS Gives the default volume and subvolume names used to qualify partial file
names.