summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/hcreate.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/hcreate.311
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/hcreate.3 b/src/lib/libc/stdlib/hcreate.3
index d1d4e5c185..a1ad251487 100644
--- a/src/lib/libc/stdlib/hcreate.3
+++ b/src/lib/libc/stdlib/hcreate.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: hcreate.3,v 1.1 2004/06/24 04:43:33 millert Exp $ 1.\" $OpenBSD: hcreate.3,v 1.2 2005/07/26 04:20:23 jaredy Exp $
2.\" $NetBSD: hcreate.3,v 1.6 2003/04/16 13:34:46 wiz Exp $ 2.\" $NetBSD: hcreate.3,v 1.6 2003/04/16 13:34:46 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 1999 The NetBSD Foundation, Inc. 4.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
54.Sh DESCRIPTION 54.Sh DESCRIPTION
55The 55The
56.Fn hcreate , 56.Fn hcreate ,
57.Fn hdestroy 57.Fn hdestroy ,
58and 58and
59.Fn hsearch 59.Fn hsearch
60functions manage hash search tables. 60functions manage hash search tables.
@@ -93,6 +93,7 @@ The
93argument is of type 93argument is of type
94.Dv ENTRY , 94.Dv ENTRY ,
95a structural type which contains the following members: 95a structural type which contains the following members:
96.Pp
96.Bl -tag -compact -offset indent -width voidX*dataXX 97.Bl -tag -compact -offset indent -width voidX*dataXX
97.It Fa char *key 98.It Fa char *key
98comparison key. 99comparison key.
@@ -111,7 +112,7 @@ The
111argument is of type 112argument is of type
112.Dv ACTION , 113.Dv ACTION ,
113an enumeration type which defines the following values: 114an enumeration type which defines the following values:
114.Bl -tag -compact -offset indent -width ENTERXX 115.Bl -tag -offset indent -width ENTERXX
115.It Dv ENTER 116.It Dv ENTER
116Insert 117Insert
117.Fa item 118.Fa item
@@ -145,7 +146,7 @@ returns no value.
145.Pp 146.Pp
146If successful, the 147If successful, the
147.Fn hsearch 148.Fn hsearch
148function returns a pointer to hash table entry matching 149function returns a pointer to a hash table entry matching
149the provided key. 150the provided key.
150If the action is 151If the action is
151.Dv FIND 152.Dv FIND
@@ -178,7 +179,7 @@ Insufficient memory is available.
178.Sh STANDARDS 179.Sh STANDARDS
179The 180The
180.Fn hcreate , 181.Fn hcreate ,
181.Fn hdestroy 182.Fn hdestroy ,
182and 183and
183.Fn hsearch 184.Fn hsearch
184functions conform to 185functions conform to