⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro.3

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 3
字号:
.TH INTRO 3.SH NAMEintro \- introduction to library functions.SH SYNOPSIS.B #include <stdio.h>.PP.B #include <math.h>.SH DESCRIPTIONThis section describes functions that may be foundin various libraries, other than those functionsthat directly invoke UNIX system primitives,which are described in section 2.Functions are divided into various libraries distinguishedby the section number at the top of the page:.TP 6n(3)These functions, together with those of section 2 and thosemarked (3S), constitute library.I libc,which is automatically loaded by the C compiler.IR cc (1)and the Fortran compiler.IR f77 (1).The link editor.IR ld (1)searches this library under the `\-lc' option.Declarations for some of these functions may be obtainedfrom include files indicated on the appropriate pages..TP(3M)These functions constitute the math library,.I libm.They are automatically loaded as needed by the Fortran compiler.IR f77 (1).The link editor searches this library under the `\-lm' option.Declarations for these functions may be obtained fromthe include file <math.h>..TP (3S)These functions constitute the`standard I/O package',see.IR stdio (3).These functions are in the library.I libcalready mentioned.Declarations for these functions may be obtained fromthe include file <stdio.h>..TP(3X)Variousspecialized libraries have not been given distinctivecaptions.The files in which these libraries are found are namedon the appropriate pages..SH FILES/lib/libc.a.br/lib/libm.a, /usr/lib/libm.a (one or the other).SH SEE ALSOstdio(3),nm(1), ld(1), cc(1), f77(1), intro(2).SH DIAGNOSTICSFunctions in the math library (3M) may returnconventional values when the function is undefined for thegiven arguments or when the value is not representable.In these cases the external variable.I errno(see.IR intro (2))is set to the value EDOMor ERANGE.The values of EDOM and ERANGE are defined inthe include file.I <math.h>..SH ASSEMBLERIn assembly language these functions may be accessedby simulating the C calling sequence.For example,.IR ecvt (3)might be called this way:.IP "".globl	_ecvt.nfsetdmov	$sign,\-(sp)mov	$decpt,\-(sp)mov	ndigit,\-(sp)movf	value,\-(sp)jsr	pc,_ecvtadd	$14.,sp.fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -