diff options
author | Simon Cozens <simon@netthink.co.uk> | 2000-07-24 06:40:52 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-07-25 15:41:15 +0000 |
commit | f3b76584ef7773843ba39a11b8bd91238af59f12 (patch) | |
tree | 9fe51961c6802f7a863938ffd299365128bc772d /pod | |
parent | db22727b1cdf038cfb2d069831d76310ffc4b838 (diff) | |
download | perl-f3b76584ef7773843ba39a11b8bd91238af59f12.tar.gz |
av.c apidoc
Message-ID: <slrn8nnp7k.cgv.simon@justanother.perlhacker.org>
p4raw-id: //depot/perl@6438
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlapi.pod | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 6bf970a901..c7edea92cc 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -38,6 +38,28 @@ array itself. =for hackers Found in file av.c +=item av_delete + +Deletes the element indexed by C<key> from the array. Returns the +deleted element. C<flags> is currently ignored. + + SV* av_delete(AV* ar, I32 key, I32 flags) + +=for hackers +Found in file av.c + +=item av_exists + +Returns true if the element indexed by C<key> has been initialized. + +This relies on the fact that uninitialized array elements are set to +C<&PL_sv_undef>. + + bool av_exists(AV* ar, I32 key) + +=for hackers +Found in file av.c + =item av_extend Pre-extend an array. The C<key> is the index to which the array should be @@ -62,6 +84,16 @@ more information on how to use this function on tied arrays. =for hackers Found in file av.c +=item av_fill + +Ensure than an array has a given number of elements, equivalent to +Perl's C<$#array = $fill;>. + + void av_fill(AV* ar, I32 fill) + +=for hackers +Found in file av.c + =item av_len Returns the highest index in the array. Returns -1 if the array is |