(Hash Search Function): Describe that memory must be cleared before calling hcreate_r.

This commit is contained in:
Ulrich Drepper 2002-09-28 03:51:42 +00:00
parent 7c2a2aafbb
commit 0d1ef15f59
1 changed files with 4 additions and 3 deletions

View File

@ -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 So this function is equivalent to the @code{hcreate} function except
that the initialized data structure is controlled by the user. that the initialized data structure is controlled by the user.
This allows having more than one hashing table at one time. The This allows having more than one hashing table at one time. The memory
memory necessary for the @code{struct hsearch_data} object can be necessary for the @code{struct hsearch_data} object can be allocated
allocated dynamically. dynamically. It must be initialized with zero before calling this
function.
The return value is non-zero if the operation were successful. if the The return value is non-zero if the operation were successful. if the
return value is zero something went wrong which probably means the return value is zero something went wrong which probably means the