From: Vincent Pit Date: Sat, 12 Apr 2008 13:44:19 +0000 (+0200) Subject: perlclib.pod tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d567a5610bb49ab2426b6b49b0c4f99be2c0aa2;p=p5sagit%2Fp5-mst-13.2.git perlclib.pod tweaks Message-ID: <4800A093.3070502@profvince.com> p4raw-id: //depot/perl@33670 --- diff --git a/pod/perlclib.pod b/pod/perlclib.pod index f676842..39488f0 100644 --- a/pod/perlclib.pod +++ b/pod/perlclib.pod @@ -104,7 +104,7 @@ There is no equivalent to C; one should use C instead: 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) + memcpy(dst, src, sizeof(t)) 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) @@ -176,9 +176,9 @@ table, C is a C, and C is a Unicode codepoint. atof(s) Atof(s) atol(s) Atol(s) - strtod(s, *p) Nothing. Just don't use it. - strtol(s, *p, n) Strtol(s, *p, n) - strtoul(s, *p, n) Strtoul(s, *p, n) + strtod(s, &p) Nothing. Just don't use it. + strtol(s, &p, n) Strtol(s, &p, n) + strtoul(s, &p, n) Strtoul(s, &p, n) Notice also the C, C, and C functions in F for converting strings representing numbers in the respective