about summary refs log tree commit diff
path: root/manual/search.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-09-28 03:51:42 +0000
committerUlrich Drepper <drepper@redhat.com>2002-09-28 03:51:42 +0000
commit0d1ef15f59c1dd9b5c1cc8e9c2f1719d31c3543e (patch)
treea7c7d1969d05e8d98057bf78139b33960f4458d2 /manual/search.texi
parent7c2a2aafbb594da8aa17f6386b8cffd935f8e213 (diff)
downloadglibc-0d1ef15f59c1dd9b5c1cc8e9c2f1719d31c3543e.tar.gz
glibc-0d1ef15f59c1dd9b5c1cc8e9c2f1719d31c3543e.tar.xz
glibc-0d1ef15f59c1dd9b5c1cc8e9c2f1719d31c3543e.zip
(Hash Search Function): Describe that memory must be cleared before calling hcreate_r.
Diffstat (limited to 'manual/search.texi')
-rw-r--r--manual/search.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/manual/search.texi b/manual/search.texi
index fdc4a7ee1c..45c5abb7f9 100644
--- a/manual/search.texi
+++ b/manual/search.texi
@@ -362,9 +362,10 @@ The @code{hcreate_r} function initializes the object pointed to by
 So this function is equivalent to the @code{hcreate} function except
 that the initialized data structure is controlled by the user.
 
-This allows having more than one hashing table at one time.  The
-memory necessary for the @code{struct hsearch_data} object can be
-allocated dynamically.
+This allows having more than one hashing table at one time.  The memory
+necessary for the @code{struct hsearch_data} object can be allocated
+dynamically.  It must be initialized with zero before calling this
+function.
 
 The return value is non-zero if the operation were successful.  if the
 return value is zero something went wrong which probably means the