BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 23 Nov 1979 10:03:38 +0000 (02:03 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 23 Nov 1979 10:03:38 +0000 (02:03 -0800)
Work on file usr/man/man3/assert.3x
Work on file usr/man/man3/ctype.3
Work on file usr/man/man3/frexp.3

Synthesized-from: 3bsd

usr/man/man3/assert.3x [new file with mode: 0644]
usr/man/man3/ctype.3 [new file with mode: 0644]
usr/man/man3/frexp.3 [new file with mode: 0644]

diff --git a/usr/man/man3/assert.3x b/usr/man/man3/assert.3x
new file mode 100644 (file)
index 0000000..ec06156
--- /dev/null
@@ -0,0 +1,39 @@
+.TH ASSERT 3X
+.SH NAME
+assert \- program verification
+.SH SYNOPSIS
+.B #include <assert.h>
+.PP
+.B assert (expression)
+.SH DESCRIPTION
+.PP
+.I Assert
+is a macro that indicates
+.I expression
+is expected to be true at this point in the program.
+It causes an
+.IR exit (2)
+with a diagnostic comment on the standard output
+when
+.I expression
+is false (0).
+Compiling with the 
+.IR cc (1)
+option
+.SM
+.B \-DNDEBUG
+effectively deletes
+.I assert
+from the program.
+.SH DIAGNOSTICS
+`Assertion failed: file
+.I f
+line
+.I n.'
+.I F
+is the source file and
+.I n
+the source line number
+of the
+.I assert
+statement.
diff --git a/usr/man/man3/ctype.3 b/usr/man/man3/ctype.3
new file mode 100644 (file)
index 0000000..01f16f0
--- /dev/null
@@ -0,0 +1,64 @@
+.TH CTYPE 3 
+.SH NAME
+isalpha, isupper, islower, isdigit, isalnum, isspace, ispunct, isprint, iscntrl, isascii \- character classification
+.SH SYNOPSIS
+.B #include <ctype.h>
+.PP
+.B isalpha(c)
+.PP
+.B . . .
+.SH DESCRIPTION
+These macros classify ASCII-coded integer values
+by table lookup.
+Each is a predicate returning nonzero for true,
+zero for false.
+.I Isascii
+is defined on all integer values; the rest
+are defined only where 
+.I isascii
+is true and on the single non-ASCII value
+EOF (see
+.IR stdio (3)).
+.TP 15n
+.I isalpha
+.I c
+is a letter
+.TP
+.I isupper
+.I c
+is an upper case letter
+.TP
+.I islower 
+.I c
+is a lower case letter
+.TP
+.I isdigit
+.I c
+is a digit
+.TP
+.I isalnum
+.I c
+is an alphanumeric character
+.TP
+.I isspace
+.I c
+is a space, tab, carriage return, newline, or formfeed
+.TP
+.I ispunct
+.I c
+is a punctuation character (neither control nor alphanumeric)
+.TP
+.I isprint
+.I c
+is a printing character, code 040(8) (space) through 0176 (tilde)
+.TP
+.I iscntrl
+.I c
+is a delete character (0177) or ordinary control character
+(less than 040).
+.TP
+.I isascii
+.I c
+is an ASCII character, code less than 0200
+.SH "SEE ALSO"
+ascii(7)
diff --git a/usr/man/man3/frexp.3 b/usr/man/man3/frexp.3
new file mode 100644 (file)
index 0000000..46aacdd
--- /dev/null
@@ -0,0 +1,45 @@
+.if t .ds s \d*\u
+.if n .ds s *
+.TH FREXP 3
+.SH NAME
+frexp, ldexp, modf \- split into mantissa and exponent
+.SH SYNOPSIS
+.B double frexp(value, eptr)
+.br
+.B double value;
+.br
+.B int *eptr;
+.PP
+.B double ldexp(value, exp)
+.br
+.B double value;
+.PP
+.B double modf(value, iptr)
+.br
+.B double value, *iptr;
+.SH DESCRIPTION
+.I Frexp
+returns the mantissa of a double 
+.I value
+as a double quantity,
+.I x,
+of magnitude less than 1
+and stores an integer 
+.I n
+such that
+.I value
+=
+\fIx\fP\|\(**\|2\u\fIn\fP\d
+indirectly through 
+.I eptr.
+.PP
+.I Ldexp
+returns the quantity
+\fIvalue\|\(**\|2\u\fIexp\fP\d.
+.PP
+.I Modf
+returns the positive fractional part of
+.I value
+and stores the integer part indirectly
+through 
+.I iptr.