summaryrefslogtreecommitdiff
path: root/pod/perlguts.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-02 22:08:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-02 22:08:51 +0000
commit9dd9db0b5e99ed70382d82a6b55eda97b58bfa75 (patch)
treec169abd1dfb566581ba9e236f1dd9095f5dbba44 /pod/perlguts.pod
parent5e8f63cbcf5357f0c8239b863de15698b006935e (diff)
downloadperl-9dd9db0b5e99ed70382d82a6b55eda97b58bfa75.tar.gz
Document the IVdf UVuf UVof UVxf.
p4raw-id: //depot/perl@6496
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r--pod/perlguts.pod13
1 files changed, 13 insertions, 0 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod
index 8c440c89d3..f2b4b909b8 100644
--- a/pod/perlguts.pod
+++ b/pod/perlguts.pod
@@ -1877,6 +1877,19 @@ This function isn't exported out of the Perl core.
If you edit F<embed.pl>, you will need to run C<make regen_headers> to
force a rebuild of F<embed.h> and other auto-generated files.
+=head2 Formatted Printing of IVs and UVs
+
+If you are printing IVs or UVs instead of the stdio(3) style formatting
+codes like C<%d> you should use the following macros for portability
+
+ IVdf IV in decimal
+ UVuf UV in decimal
+ UVof UV in octal
+ UVxf UV in hexadecimal
+
+For example: printf("IV is %"IVdf"\n", iv); That will expand
+to whatever is the correct format for the IVs.
+
=head2 Source Documentation
There's an effort going on to document the internal functions and