diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-08 09:39:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-08 09:39:11 +0000 |
commit | 04905aaeffba2bc77866a4056dc3f2020a86bb26 (patch) | |
tree | f66439aeb6cfe05268824ac890169e5cd306f3f3 /doc/libstddjb/alloc.html | |
parent | a5079576ae9007fb1ca7ebcc911b5fb035cd2d06 (diff) | |
download | skalibs-04905aaeffba2bc77866a4056dc3f2020a86bb26.tar.xz |
Update documentation for the types change, with some extra fixes
Also remove --enable-replace-libc from configure
Diffstat (limited to 'doc/libstddjb/alloc.html')
-rw-r--r-- | doc/libstddjb/alloc.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/libstddjb/alloc.html b/doc/libstddjb/alloc.html index 083b5de..615e67d 100644 --- a/doc/libstddjb/alloc.html +++ b/doc/libstddjb/alloc.html @@ -65,7 +65,7 @@ should favor them over basic interfaces like <tt>malloc()</tt>. <h2> Functions </h2> <p> -<code> char *alloc (unsigned int len) </code> <br /> +<code> char *alloc (size_t len) </code> <br /> Allocates a block of <em>len</em> bytes in the heap and returns a pointer to the start of the block (or NULL if it failed). Though the pointer type is <tt>char *</tt>, the block of memory is correctly aligned for any type @@ -80,7 +80,7 @@ Frees the block of heap memory pointed to by <em>p</em>. </p> <p> -<code> int alloc_realloc (char **p, unsigned int newlen) </code> <br /> +<code> int alloc_realloc (char **p, size_t newlen) </code> <br /> Redimension the block of heap memory pointed to by *<em>p</em> to <em>newlen</em> bytes. The block may have to be moved, in which case *<em>p</em> will be modified. Normally returns 1; if an error occurred, @@ -89,7 +89,7 @@ modified. </p> <p> -<code> int alloc_re (char **p, unsigned int oldlen, unsigned int newlen) </code> <br /> +<code> int alloc_re (char **p, size_t oldlen, size_t newlen) </code> <br /> Legacy interface for reallocation. It works like <tt>alloc_realloc</tt>, except that the original block length must be provided as the <em>oldlen</em> argument. |