diff options
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r-- | pod/perlguts.pod | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 8ff4a84a6e..54d071596a 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -1354,31 +1354,6 @@ destination starting points. Perl will move, copy, or zero out C<number> instances of the size of the C<type> data structure (using the C<sizeof> function). -Here is a handy table of equivalents between ordinary C and Perl's -memory abstraction layer: - - 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) - free(p) Safefree(p) - strdup(p) savepv(p) - strndup(p, n) savepvn(p, n) (Hey, strndup doesn't exist!) - memcpy/*(struct foo *) StructCopy(src, dst, t) - - t type - p pointer - ck cookie for the memory region (now unused) - n number of elements - src source pointer - dst destination pointer - -Notice the different order of arguments to C<Copy> and C<Move> than used -in C<memcpy> and C<memmove>. - =head2 PerlIO The most recent development releases of Perl has been experimenting with |