| version 1.11, 1999/03/08 10:35:43 |
version 1.11.12.3, 2002/03/22 20:42:07 |
|
|
| .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 |
| Line 105 must be retained through all subsequent |
|
| Line 105 must be retained through all subsequent |
|
| and |
and |
| .Fn cgetustr , |
.Fn cgetustr , |
| but may then be |
but may then be |
| .Xr free 3 Ns \&'d. |
.Xr free 3 Ns \&'d . |
| .Pp |
.Pp |
| On success 0 is returned, 1 if the returned record contains an unresolved |
On success 0 is returned, 1 if the returned record contains an unresolved |
| .Qq tc |
.Qq tc |
| Line 423 overrides the definition of |
|
| Line 423 overrides the definition of |
|
| interpolated from the capability record |
interpolated from the capability record |
| .Em old |
.Em old |
| in |
in |
| .Fa file2, |
.Fa file2 , |
| .Qq who-cares@ |
.Qq who-cares@ |
| prevents the definition of any who-cares definitions in |
prevents the definition of any who-cares definitions in |
| .Em old |
.Em old |
|
|
| 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) |