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

📄 div.3

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3
字号:
.\" SCCSID: 9/11/90 div.3.TH div 3.SH Namediv, ldiv \- integer division.SH Syntax.nf.B #include <stdlib.h>.PP.B div_t div(\fInumer, denom\fP).B int \fInumer\fP;.B int \fIdenom\fP;.PP.B ldiv_t ldiv(\fInumer, denom\fP).B long \fInumer\fP;.B long \fIdenom\fP;.fi.SH Description.NXR "div subroutine (ANSI C)".NXR "ldiv subroutine (ANSI C)"The.PN divand.PN ldivfunctions return the quotient and remainder of the division of thenumerator.I numerby the denominator.I denom..PPThe return types div_t and ldiv_t are defined, in stdlib.h, as follows:.PP.EX 5typedef struct {		int	quot;	/* quotient */		int	rem;	/* remainder */	}	div_t;		/* result of div() */typedef struct {		long	quot;	/* quotient */		long	rem;	/* remainder */	}	ldiv_t;		/* result of ldiv() */.EE.SH RestrictionsIf division by zero is attempted, the behavior of .PN div and .PN ldiv isundefined.

⌨️ 快捷键说明

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