diff options
author | Vincent Pit <perl@profvince.com> | 2008-04-12 15:44:19 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-12 12:47:08 +0000 |
commit | 4d567a5610bb49ab2426b6b49b0c4f99be2c0aa2 (patch) | |
tree | addbae081015b8585ba0a8077dfc9c8714e9eb01 | |
parent | c4f3bd1eee42dd26d655edfa88fdf9885eb82325 (diff) | |
download | perl-4d567a5610bb49ab2426b6b49b0c4f99be2c0aa2.tar.gz |
perlclib.pod tweaks
Message-ID: <4800A093.3070502@profvince.com>
p4raw-id: //depot/perl@33670
-rw-r--r-- | pod/perlclib.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlclib.pod b/pod/perlclib.pod index f676842f60..39488f0fa6 100644 --- a/pod/perlclib.pod +++ b/pod/perlclib.pod @@ -104,7 +104,7 @@ There is no equivalent to C<fgets>; one should use C<sv_gets> 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<c> is a C<char>, and C<u> 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<grok_bin>, C<grok_hex>, and C<grok_oct> functions in F<numeric.c> for converting strings representing numbers in the respective |