Skip to content

Commit 4b1cd9c

Browse files
authored
Merge pull request #100 from devnexen/iso_reallocarray_doc
document `iso_reallocarray`
2 parents c01d0c6 + 4b69b07 commit 4b1cd9c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ If all else fails please file an issue on the [github project](https://github.co
145145

146146
`void *iso_realloc(void *p, size_t size)` - Equivalent to `realloc`. Reallocates a new chunk, if necessary, to be size bytes big and copies the contents of p to it.
147147

148+
`void *iso_reallocarray(void *p, size_t nmemb, size_t size)` - Equivalent to `reallocarray`. In the same principles as `iso_realloc`, reallocates a new chunk but for an array of nmemb elements of size bytes and in addition check for possible size overflow.
149+
148150
`void iso_free(void *p)` - Frees any chunk allocated and returned by any API call (e.g. `iso_alloc, iso_calloc, iso_realloc, iso_strdup, iso_strndup`).
149151

150152
`void iso_free_size(void *p, size_t size)` - The same as `iso_free` but requires a size argument so a strict size check can be performed

0 commit comments

Comments
 (0)