diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-05 21:26:09 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-05 21:26:09 +0000 |
commit | 702eb6d058ad90bee8332952b92588ced38f499f (patch) | |
tree | 8b7465e214f5a139b927da16b84bcae51fa556d0 | |
parent | 94c0dff675797c8777f4a4d886a78f5996b15447 (diff) | |
download | perl-702eb6d058ad90bee8332952b92588ced38f499f.tar.gz |
Zero() wasn't documented.
p4raw-id: //depot/perl@14094
-rw-r--r-- | pod/perlclib.pod | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pod/perlclib.pod b/pod/perlclib.pod index 80e6194d1f..7c527a9a7a 100644 --- a/pod/perlclib.pod +++ b/pod/perlclib.pod @@ -97,15 +97,17 @@ There is no equivalent to C<fgets>; one should use C<sv_gets> instead: =head2 Memory Management and String Handling - Instead Of: Use: - - t* p = malloc(n) New(id, p, n, t) - t* p = calloc(n, s) Newz(id, p, n, t) - p = realloc(p, n) Renew(p, n, t) - memcpy(dst, src, n) Copy(src, dst, n, t) - memmove(dst, src, n) Move(src, dst, n, t) - memcpy/*(struct foo *) StructCopy(src, dst, t) - free(p) Safefree(p) + Instead Of: Use: + + t* p = malloc(n) New(id, p, n, t) + t* p = calloc(n, s) Newz(id, p, n, t) + p = realloc(p, n) Renew(p, n, t) + memcpy(dst, src, n) Copy(src, dst, n, t) + memmove(dst, src, n) Move(src, dst, n, t) + memcpy/*(struct foo *) StructCopy(src, dst, t) + memset(dst, 0, n * sizeof(t)) Zero(dst, n, t) + memzero(dst, 0) Zero(dst, n, char) + free(p) Safefree(p) strdup(p) savepv(p) strndup(p, n) savepvn(p, n) (Hey, strndup doesn't exist!) |