hcreate.3 (b626f5a73a48f44a31a200291b141e1da408a2ff) hcreate.3 (d5f154d3cfe6e4bb04cc3f0e61edced19b814553)
1.\"-
2.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
3.\" All rights reserved.
4.\"
5.\" This code is derived from software contributed to The NetBSD Foundation
6.\" by Klaus Klein.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD$
30.\"
1.\"-
2.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
3.\" All rights reserved.
4.\"
5.\" This code is derived from software contributed to The NetBSD Foundation
6.\" by Klaus Klein.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD$
30.\"
31.Dd December 26, 2015
31.Dd February 6, 2017
32.Dt HCREATE 3
33.Os
34.Sh NAME
35.Nm hcreate ,
36.Nm hcreate_r ,
37.Nm hdestroy ,
38.Nm hdestroy_r ,
39.Nm hsearch ,

--- 220 unchanged lines hidden (view full) ---

260 (void)printf("no such employee %s\en", name_to_find);
261 }
262 hdestroy();
263 return 0;
264}
265.Ed
266.Sh ERRORS
267The
32.Dt HCREATE 3
33.Os
34.Sh NAME
35.Nm hcreate ,
36.Nm hcreate_r ,
37.Nm hdestroy ,
38.Nm hdestroy_r ,
39.Nm hsearch ,

--- 220 unchanged lines hidden (view full) ---

260 (void)printf("no such employee %s\en", name_to_find);
261 }
262 hdestroy();
263 return 0;
264}
265.Ed
266.Sh ERRORS
267The
268.Fn hcreate
268.Fn hcreate ,
269.Fn hcreate_r ,
269.Fn hcreate_r ,
270.Fn hsearch
270.Fn hsearch ,
271and
272.Fn hsearch_r
273functions will fail if:
274.Bl -tag -width Er
275.It Bq Er ENOMEM
276Insufficient memory is available.
277.El
278.Pp
279The
280.Fn hsearch
281and
282.Fn hsearch_r
283functions will also fail if the action is
271and
272.Fn hsearch_r
273functions will fail if:
274.Bl -tag -width Er
275.It Bq Er ENOMEM
276Insufficient memory is available.
277.El
278.Pp
279The
280.Fn hsearch
281and
282.Fn hsearch_r
283functions will also fail if the action is
284.Dv SEARCH
284.Dv FIND
285and the element is not found:
286.Bl -tag -width Er
287.It Bq Er ESRCH
288The
289.Fa item
290given is not found.
291.El
292.Sh SEE ALSO

--- 33 unchanged lines hidden ---
285and the element is not found:
286.Bl -tag -width Er
287.It Bq Er ESRCH
288The
289.Fa item
290given is not found.
291.El
292.Sh SEE ALSO

--- 33 unchanged lines hidden ---