X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fsafe-alloc.texi;h=60304472ffcbca2f9dbcd44f6f93ccda9def50cc;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=9b7de06a56a4a2179b40e0d9afb3f4e501122e5d;hpb=bdec3e410196c242757abb0a130dd929e6375615;p=gnulib.git diff --git a/doc/safe-alloc.texi b/doc/safe-alloc.texi index 9b7de06a5..60304472f 100644 --- a/doc/safe-alloc.texi +++ b/doc/safe-alloc.texi @@ -45,7 +45,7 @@ Allocate @code{sizeof(*ptr)} bytes of memory and store the address of allocated memory in @code{ptr}. Fill the newly allocated memory with zeros. -Returns -1 on failure, 0 on success. +Returns @minus{}1 on failure, 0 on success. @end defmac @defmac {int} ALLOC_N (ptr, count) @@ -54,7 +54,7 @@ Allocate an array of @code{count} elements, each @code{sizeof(*ptr)} bytes long, and store the address of allocated memory in @code{ptr}. Fill the newly allocated memory with zeros. -Returns -1 on failure, 0 on success. +Returns @minus{}1 on failure, 0 on success. @end defmac @defmac {int} ALLOC_N_UNINITIALIZED (ptr, count) @@ -63,7 +63,7 @@ Allocate an array of @code{count} elements, each @code{sizeof(*ptr)} bytes long, and store the address of allocated memory in @code{ptr}. The allocated memory is not initialized. -Returns -1 on failure, 0 on success. +Returns @minus{}1 on failure, 0 on success. @end defmac @defmac {int} REALLOC_N (ptr, count) @@ -73,7 +73,7 @@ at least @code{count} elements, each @code{sizeof(*ptr)} bytes long, and store the address of allocated memory in @code{ptr}. If reallocation fails, the @code{ptr} variable is not modified. -Returns -1 on failure, 0 on success. +Returns @minus{}1 on failure, 0 on success. @end defmac @defmac {void} FREE (ptr)