xref: /netbsd-src/usr.bin/m4/lib/ohash_entries.c (revision 71dafaa1f2404e3d305953a2adb9753e60d418ae)
1*71dafaa1Schristos /* $OpenBSD: ohash_entries.c,v 1.2 2004/06/22 20:00:16 espie Exp $ */
2*71dafaa1Schristos /* ex:ts=8 sw=4:
3*71dafaa1Schristos  */
4*71dafaa1Schristos 
5*71dafaa1Schristos /* Copyright (c) 1999, 2004 Marc Espie <espie@openbsd.org>
6*71dafaa1Schristos  *
7*71dafaa1Schristos  * Permission to use, copy, modify, and distribute this software for any
8*71dafaa1Schristos  * purpose with or without fee is hereby granted, provided that the above
9*71dafaa1Schristos  * copyright notice and this permission notice appear in all copies.
10*71dafaa1Schristos  *
11*71dafaa1Schristos  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12*71dafaa1Schristos  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13*71dafaa1Schristos  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14*71dafaa1Schristos  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15*71dafaa1Schristos  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16*71dafaa1Schristos  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17*71dafaa1Schristos  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18*71dafaa1Schristos  */
19*71dafaa1Schristos 
20*71dafaa1Schristos #include "ohash_int.h"
21*71dafaa1Schristos 
22*71dafaa1Schristos unsigned int
ohash_entries(struct ohash * h)23*71dafaa1Schristos ohash_entries(struct ohash *h)
24*71dafaa1Schristos {
25*71dafaa1Schristos 	return h->total - h->deleted;
26*71dafaa1Schristos }
27