| version 1.11.12.1, 2001/10/08 20:18:54 |
version 1.11.12.2, 2002/03/08 21:35:05 |
|
|
| .Sh LIBRARY |
.Sh LIBRARY |
| .Lb libc |
.Lb libc |
| .Sh SYNOPSIS |
.Sh SYNOPSIS |
| .Fd #include <stdlib.h> |
.Fd #include \*[Lt]stdlib.h\*[Gt] |
| .Ft int |
.Ft int |
| .Fn cgetent "char **buf" "char **db_array" "const char *name" |
.Fn cgetent "char **buf" "char **db_array" "const char *name" |
| .Ft int |
.Ft int |
|
|
| codes, new lines, and colons may be conveniently represented by the use |
codes, new lines, and colons may be conveniently represented by the use |
| of escape sequences: |
of escape sequences: |
| .Bl -column "\e\|X,X\e\|X" "(ASCII octal nnn)" |
.Bl -column "\e\|X,X\e\|X" "(ASCII octal nnn)" |
| ^X ('\fIX\fP' & 037) control-\fIX\fP |
^X ('\fIX\fP' \*[Am] 037) control-\fIX\fP |
| \e\|b, \e\|B (ASCII 010) backspace |
\e\|b, \e\|B (ASCII 010) backspace |
| \e\|t, \e\|T (ASCII 011) tab |
\e\|t, \e\|T (ASCII 011) tab |
| \e\|n, \e\|N (ASCII 012) line feed (newline) |
\e\|n, \e\|N (ASCII 012) line feed (newline) |