HP C A.06.05 Reference Manual
HP C/HP-UX Implementation Topics
Library Functions and Header Files
Chapter 10252
Library Functions and Header Files
This section describes the implementation of library functions in HP C/HP-UX. For complete
information about library functions on HP C/HP-UX, see the
HP-UX Reference
manual and
HP-UX Linker and Libraries Online User Guide.
The Math Library
When using any of the mathematical functions in the <math.h> header, you must include the
-lm flag on the cc or ld command when linking. This will cause the linker to link in the
appropriate math library.
Other Library Functions
• longjmp: Because HP C/HP-UX can place automatic variables in registers, you cannot
rely on their values if they are changed between the setjmp and longjmp functions.
• setjmp: There are no restrictions on when calls to setjmp can be made.
NOTE +Olibcalls transforming setjmp to _setjmp and longjmp to _longjmp is not
supported in 11.x of HP C compilers.