diff options
author | H. Peter Anvin <hpa@zytor.com> | 2001-10-23 05:48:42 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2001-10-23 05:48:42 +0000 |
commit | 27c76b02d945c7a926ba2d755960af41f6b9688f (patch) | |
tree | c93ea4b78271fec3936bc16957f6647a8bcfd108 | |
parent | 87f242262f814b6d8a27a2be7cf40db48059051d (diff) | |
download | lpsm-27c76b02d945c7a926ba2d755960af41f6b9688f.tar.gz lpsm-27c76b02d945c7a926ba2d755960af41f6b9688f.tar.xz lpsm-27c76b02d945c7a926ba2d755960af41f6b9688f.zip |
Correct a bunch of formatting problems in this man page.
-rw-r--r-- | lpsm_malloc.3.in | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/lpsm_malloc.3.in b/lpsm_malloc.3.in index b0c2b94..9ec6f32 100644 --- a/lpsm_malloc.3.in +++ b/lpsm_malloc.3.in @@ -86,11 +86,29 @@ it must have been returned by an earlier call to .BR lpsm_calloc() or .BR lpsm_realloc() . +.PP +.B lpsm_zalloc() +allocates +.I size +bytes and returns a pointer to the allocated memory. +The memory is set to zero. +.PP +.B lpsm_calloc() +allocates memory for an array of +.I nmemb +elements of +.I size +bytes each and returns a pointer to the allocated memory. +The memory is set to zero. This is functionally equivalent to +\fBlpsm_zalloc(\fP\fInmemb\fP\fB*\fP\fIsize\fP\fB)\fP. .SH "RETURN VALUES" For -.BR lpsm_calloc() " and " lpsm_malloc() , +.BR lpsm_malloc() , +.BR lpsm_zalloc() , +and +.BR lpsm_malloc() , the value returned is a pointer to the allocated memory, which is suitably -aligned for any kind of variable, or +aligned for any kind of variable that can fit into the allocation size, or .B NULL if the request fails. .PP @@ -107,21 +125,6 @@ if the request fails or if size was equal to 0. If .B lpsm_realloc() fails the original block is left untouched - it is not freed or moved. .PP -.B lpsm_zalloc() -allocates -.I size -bytes and returns a pointer to the allocated memory. -The memory is set to zero. -.PP -.B lpsm_calloc() -allocates memory for an array of -.I nmemb -elements of -.I size -bytes each and returns a pointer to the allocated memory. -The memory is set to zero. This is functionally equivalent to -\fBlpsm_zalloc(\fP\fInmemb\fP\fB*\fP\fIsize\fP\fB)\fP . -.PP .SH "CONFORMING TO" These functions mimic in as much as possible the ISO C and POSIX behaviour of the equivalent transient memory allocation functions. |