|
|
1.1 ! root 1: .TH INTRO 3 ! 2: .SH NAME ! 3: intro \(mi introduction to library functions ! 4: .SH SYNOPSIS ! 5: .nf ! 6: .B #include <libc.h> ! 7: .PP ! 8: .B #include <stdio.h> ! 9: .PP ! 10: .B #include <math.h> ! 11: .fi ! 12: .SH DESCRIPTION ! 13: This section describes functions that may be found ! 14: in various libraries, other than the system calls ! 15: described in section 2. ! 16: Functions are divided into various libraries distinguished ! 17: by the section number at the top of the page: ! 18: .TP ! 19: (3) ! 20: These functions, together with those of section 2 and those ! 21: marked (3S) and (3M), constitute library ! 22: .I libc, ! 23: which is automatically loaded by the C compiler ! 24: .IR cc (1) ! 25: and the Fortran compiler ! 26: .IR f77 (1). ! 27: The same functions appear also in ! 28: .IR libC, ! 29: which is automatically loaded by the C++ compiler; see ! 30: .IR c++ (1). ! 31: The link editor ! 32: .IR ld (1) ! 33: searches this library under option ! 34: .BR \-lc ! 35: .RB ( -lC ! 36: for ! 37: .IR libC ). ! 38: Declarations for some of these functions may be obtained ! 39: from include files indicated on the appropriate pages. ! 40: Other declarations can be found in ! 41: .FR <libc.h> . ! 42: .TP ! 43: (3F) ! 44: These functions are in the Fortran library, ! 45: .I libF77, ! 46: automatically loaded by the Fortran compiler, and searched ! 47: under option ! 48: .B -lF77 ! 49: of the link editor. ! 50: .TP ! 51: (3M) ! 52: These functions constitute the math library, part of ! 53: .I libc. ! 54: (On some other systems they must be loaded by ! 55: .BR -lm ). ! 56: Declarations for these functions may be obtained from ! 57: the include file ! 58: .FR <math.h> . ! 59: .TP ! 60: (3S) ! 61: These functions constitute the ! 62: `standard IO package' ! 63: (see ! 64: .IR stdio (3)) ! 65: part of ! 66: .I libc ! 67: already mentioned. ! 68: Declarations for these functions may be obtained from ! 69: the include file ! 70: .FR <stdio.h> . ! 71: .TP ! 72: (3X) ! 73: Various ! 74: specialized libraries have not been given distinctive ! 75: captions. ! 76: Files in which such libraries are found are named ! 77: on appropriate pages. ! 78: .TP ! 79: (3+) ! 80: C++ functions in ! 81: .I libC ! 82: that are not in ! 83: .I libc. ! 84: .SH FILES ! 85: .TP ! 86: .F /lib/libc.a ! 87: .SH SEE ALSO ! 88: .IR stdio (3), ! 89: .IR nm (1), ! 90: .IR ld (1), ! 91: .IR cc (1), ! 92: .IR c++ (1), ! 93: .IR f77 (1), ! 94: .IR intro (2) ! 95: .SH DIAGNOSTICS ! 96: Functions in the math library (3M) may return ! 97: conventional values when the function is undefined for the ! 98: given arguments or when the value is not representable. ! 99: In these cases the external variable ! 100: .I errno ! 101: (see ! 102: .IR intro (2)) ! 103: is set to the value ! 104: .B EDOM ! 105: or ! 106: .BR ERANGE , ! 107: defined in ! 108: the include file ! 109: .FR <math.h> .
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.