diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-10-25 19:13:42 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-10-25 19:13:42 +0000 |
commit | 21cb7ca55c2fdd7e9aca6c7a80ae0d7ca4f6c7da (patch) | |
tree | 9bce2d28d077684abe0904fdfb3974e06ceb29f6 /manual | |
parent | 16d1b47b4f3f9ae13535ea7a2c02bd207c069d5c (diff) | |
download | glibc-21cb7ca55c2fdd7e9aca6c7a80ae0d7ca4f6c7da.tar.gz glibc-21cb7ca55c2fdd7e9aca6c7a80ae0d7ca4f6c7da.tar.xz glibc-21cb7ca55c2fdd7e9aca6c7a80ae0d7ca4f6c7da.zip |
Updated to fedora-glibc-20061025T1857 cvs/fedora-glibc-2_5_90-1
Diffstat (limited to 'manual')
-rw-r--r-- | manual/conf.texi | 5 | ||||
-rw-r--r-- | manual/search.texi | 12 | ||||
-rw-r--r-- | manual/stdio.texi | 5 |
3 files changed, 9 insertions, 13 deletions
diff --git a/manual/conf.texi b/manual/conf.texi index ef00db6b7b..605e305071 100644 --- a/manual/conf.texi +++ b/manual/conf.texi @@ -1455,11 +1455,6 @@ Inquire about the value of @code{_POSIX_ASYNC_IO}. Inquire about the value of @code{_POSIX_PRIO_IO}. @comment unistd.h -@comment POSIX.1g -@item _PC_SOCK_MAXBUF -Inquire about the value of @code{_POSIX_PIPE_BUF}. - -@comment unistd.h @comment LFS @item _PC_FILESIZEBITS Inquire about the availability of large files on the filesystem. diff --git a/manual/search.texi b/manual/search.texi index 1ac2653f16..b98fca9b35 100644 --- a/manual/search.texi +++ b/manual/search.texi @@ -82,7 +82,7 @@ starting at @var{base} if it is found. If no matching element is available @code{NULL} is returned. The mean runtime of this function is @code{*@var{nmemb}}/2. This -function should only be used elements often get added to or deleted from +function should only be used if elements often get added to or deleted from the array in which case it might not be useful to sort the array before searching. @end deftypefun @@ -247,21 +247,21 @@ Couldn't find Janice. @node Hash Search Function @section The @code{hsearch} function. -The functions mentioned so far in this chapter are searching in a sorted +The functions mentioned so far in this chapter are for searching in a sorted or unsorted array. There are other methods to organize information which later should be searched. The costs of insert, delete and search differ. One possible implementation is using hashing tables. -The following functions are declared in the the header file @file{search.h}. +The following functions are declared in the header file @file{search.h}. @comment search.h @comment SVID @deftypefun int hcreate (size_t @var{nel}) The @code{hcreate} function creates a hashing table which can contain at least @var{nel} elements. There is no possibility to grow this table so -it is necessary to choose the value for @var{nel} wisely. The used -methods to implement this function might make it necessary to make the +it is necessary to choose the value for @var{nel} wisely. The method +used to implement this function might make it necessary to make the number of elements in the hashing table larger than the expected maximal -number of elements. Hashing tables usually work inefficient if they are +number of elements. Hashing tables usually work inefficiently if they are filled 80% or more. The constant access time guaranteed by hashing can only be achieved if few collisions exist. See Knuth's ``The Art of Computer Programming, Part 3: Searching and Sorting'' for more diff --git a/manual/stdio.texi b/manual/stdio.texi index c471209134..977989d95e 100644 --- a/manual/stdio.texi +++ b/manual/stdio.texi @@ -2393,8 +2393,9 @@ This function is similar to @code{sprintf}, except that it dynamically allocates a string (as with @code{malloc}; @pxref{Unconstrained Allocation}) to hold the output, instead of putting the output in a buffer you allocate in advance. The @var{ptr} argument should be the -address of a @code{char *} object, and @code{asprintf} stores a pointer -to the newly allocated string at that location. +address of a @code{char *} object, and a successful call to +@code{asprintf} stores a pointer to the newly allocated string at that +location. The return value is the number of characters allocated for the buffer, or less than zero if an error occurred. Usually this means that the buffer |