1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] New function hash_table_count.

Published in <sxsu2403zzw.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2001-04-07 19:09:04 -07:00
parent b5788b5eb7
commit 26547d3987
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-04-08 Hrvoje Niksic <hniksic@arsdigita.com>
* hash.c (hash_table_count): New function.
2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com> 2001-04-06 Hrvoje Niksic <hniksic@arsdigita.com>
* utils.c (read_file): Cast MAP_FAILED to char *. Enforced by * utils.c (read_file): Cast MAP_FAILED to char *. Enforced by
@ -34,6 +38,7 @@
username was present, but the URL did not contain a slash, e.g. username was present, but the URL did not contain a slash, e.g.
http://foo:bar@myhost. http://foo:bar@myhost.
>>>>>>> 1.148
2001-04-03 KOJIMA Hajime <kjm@rins.ryukoku.ac.jp> 2001-04-03 KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
* http.c (http_atotm): Use %A instead of %a to match full * http.c (http_atotm): Use %A instead of %a to match full

View File

@ -458,6 +458,15 @@ hash_table_map (struct hash_table *ht,
return; return;
} }
} }
/* Return the number of elements in the hash table. This is not the
same as the physical size of the hash table, which is always
greater than the number of elements. */
int
hash_table_count (struct hash_table *ht)
{
return ht->count;
}
/* Support for hash tables whose keys are strings. */ /* Support for hash tables whose keys are strings. */