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

The same file can be opened simultaneously multiple times, as long as it is not for writing.
The effect of the remove() function on an open file is that it returns a nonzero value and does
not remove the file.
If a file with a new name already exists prior to a call to the rename() function, it returns a
nonzero value without renaming the file.
The output for %p conversion in the fprintf() function formats the value of a pointer to a void
argument using the format specified by the x conversion code.
The input for %p conversion in the fscanf() function matches an unsigned hexadecimal integer
that uses the lowercase letters a through f to represent the digits 10 through 15. The corresponding
obj_ptr must be a pointer to void. Consequently, the integer is interpreted as a pointer to void.
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:
DescriptionParameter
Gives the name of the standard input file, stdin.STDIN
Gives the name of the standard output file, stdout.STDOUT
Gives the name of the standard error file, stderr.STDERR
Gives the default volume and subvolume names used to qualify partial file names.DEFAULTS
To alter the Guardian environment list obtained by a call to the getenv() function, use the PARAM
command, the syntax for which is:
PARAM param_name param_setting
param_name
is the run-time environment parameter name
400 HP C Implementation-Defined Behavior