diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-10 19:51:20 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-10 19:51:20 +0000 |
commit | 0b7ffdcb2b759c286916c0a28a8bc487b998fece (patch) | |
tree | 0112689a6fd03b1a09a753995af6616df5380c79 /doc | |
parent | d69c554bf4ab96d713b9f58fb22ea449cfd5901b (diff) |
Merged revisions 211584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r211584 | tilghman | 2009-08-10 14:49:41 -0500 (Mon, 10 Aug 2009) | 9 lines
Merged revisions 211583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r211583 | tilghman | 2009-08-10 14:48:48 -0500 (Mon, 10 Aug 2009) | 1 line
Conversion specifiers, not format specifiers
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@211585 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CODING-GUIDELINES | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/CODING-GUIDELINES b/doc/CODING-GUIDELINES index 766e5d970..49ea32462 100644 --- a/doc/CODING-GUIDELINES +++ b/doc/CODING-GUIDELINES @@ -388,9 +388,10 @@ When converting from strings to integers or floats, use the sscanf function in preference to the atoi and atof family of functions, as sscanf detects errors. Always check the return value of sscanf to verify that your numeric variables successfully scanned before using them. Also, to avoid a potential -libc bug, always specify a maximum width for each format specifier, including -integers and floats. A good length for both integers and floats is 30, as -this is more than generous, even if you're using doubles or long integers. +libc bug, always specify a maximum width for each conversion specifier, +including integers and floats. A good length for both integers and floats is +30, as this is more than generous, even if you're using doubles or long +integers. * Use of functions ------------------ |