diff options
author | Richard Leach <richardleach@users.noreply.github.com> | 2021-07-05 10:52:46 +0100 |
---|---|---|
committer | Hugo van der Sanden <hv@crypt.org> | 2021-07-06 19:07:13 +0100 |
commit | 158b05f88107501586f35dde9afd3c1444e148e1 (patch) | |
tree | 7018a27252fe018214baf65e68b4d9fb1c99dfcd | |
parent | 1a93d8dfa8d615bf87ff5bc034f28f47b20208a8 (diff) | |
download | perl-158b05f88107501586f35dde9afd3c1444e148e1.tar.gz |
av_new_alloc: revise description of size parameter
-rw-r--r-- | av.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -403,11 +403,10 @@ This is similar to but more efficient than doing: AV *av = newAV(); av_extend(av, key); -The zeroflag parameter controls whether the array is NULL initialized. +The size parameter is used to pre-allocate a SV* array large enough to +hold at least elements 0..(size-1). size must be at least 1. -Note that av_index() takes the desired AvMAX as its key parameter, but -av_new_alloc() instead takes the desired size (so AvMAX + 1). This -size must be at least 1. +The zeroflag parameter controls whether the array is NULL initialized. =cut */ |