Guardian C Library Calls Reference Manual

<stdlibh>
2-12 128833Guardian TNS C Library Calls Reference Manual
Summary of Library Header Files
The stdioh header also defines these object-like macros:
BUFSIZ specifies the size in bytes of the buffers the C language uses for streams.
Refer to the C/C++ Programmer’s Guide for the maximum length in bytes of these
buffers.
EOF is the value returned by several functions to indicate the end of the file.
FCHR_MAX specifies the maximum size (in bytes) of a file.
FILENAME_MAX specifies the maximum length (in characters) of a file name.
FOPEN_MAX specifies the maximum number of files that you can have open
simultaneously.
L_tmpnam specifies the minimum size (in characters) of a char array that can
accommodate a file name generated by tmpnam.
SEEK_END, SEEK_SET, and SEEK_CUR are used by edfseek and fseek.
stderr, stdin, and stdout denote the file pointers corresponding to the standard error,
input, and output files, respectively.
TMP_MAX specifies the maximum number of times you can call the tmpnam
function to acquire a unique file name.
<stdlibh>
The header stdlibh declares functions that perform a variety of operations, including
memory management, data conversion, and searching and sorting. These functions are:
abort abs atexit
atof atoi atol
bsearch calloc div
exit free get_assign_msg
get_assign_msg_by_name get_max_assign_msg_ordinal
get_param_by_name get_param_msg
get_startup_msg getenv
heap_check heap_check_always heap_min_block_size
labs ldiv malloc
_max mblen mbstows
mbtowc _min putenv
qsort rand realloc
srand strtod strtol
strtoul system terminate_program
trap_overflows wcstombs wctomb
The stdlibh header also declares two types, div_t and ldiv_t, that are used by the div and
ldiv functions. These types are described in the discussions of div and ldiv in Section 3,
“Reference to Library Calls.
In addition, the stdlibh header defines the macros EXIT_FAILURE and
EXIT_SUCCESS for use in the exit function, and the macro RAND_MAX, which
specifies the maximum value returned by the rand function.