intro \- introduction to library functions
This section describes functions that may be found
in various libraries, other than those functions
that directly invoke UNIX system primitives,
which are described in section 2.
Functions are divided into various libraries distinguished
by the section number at the top of the page:
These functions, together with those of section 2 and those
marked (3S), constitute library
which is automatically loaded by the C compiler
searches this library under the `\-lc' option.
Declarations for some of these functions may be obtained
from include files indicated on the appropriate pages.
These functions constitute the math library,
They are automatically loaded as needed by the Fortran compiler
The link editor searches this library under the `\-lm' option.
Declarations for these functions may be obtained from
the include file <math.h>.
These functions constitute the
These functions are in the library
Declarations for these functions may be obtained from
the include file <stdio.h>.
specialized libraries have not been given distinctive
The files in which these libraries are found are named
on the appropriate pages.
/lib/libm.a, /usr/lib/libm.a (one or the other)
nm(1), ld(1), cc(1), f77(1), intro(2)
Functions in the math library (3M) may return
conventional values when the function is undefined for the
given arguments or when the value is not representable.
In these cases the external variable
The values of EDOM and ERANGE are defined in
In assembly language these functions may be accessed
by simulating the C calling sequence.
might be called this way: