diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-11-22 18:46:41 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-11-22 18:46:41 +0000 |
commit | 961e7003b3589becbea5ac747ac2104b257f3e82 (patch) | |
tree | a5a6a883b96eaaa5667d0d703b4139607b1fdc3a /lib/util | |
parent | f3316d36985ad16f1d82aea44eddc311cb739d6d (diff) | |
download | netpbm-mirror-961e7003b3589becbea5ac747ac2104b257f3e82.tar.gz netpbm-mirror-961e7003b3589becbea5ac747ac2104b257f3e82.tar.xz netpbm-mirror-961e7003b3589becbea5ac747ac2104b257f3e82.zip |
Add comment
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2321 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/vasprintf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util/vasprintf.c b/lib/util/vasprintf.c index b294763a..a947f763 100644 --- a/lib/util/vasprintf.c +++ b/lib/util/vasprintf.c @@ -40,6 +40,12 @@ pm_vasprintf(const char ** const resultP, So instead, we just allocate 4K and truncate or waste as necessary. + + Note that we don't recognize the floating point specifiers (%f, %e, %g) + - we render them as 'f', 'e', and 'g'. It would be too much work to + make this code handle those, just for the few systems on which it runs. + Instead, we have pm_vasprintf_knows_float(), and any caller that cares + enough can avoid using these specifiers where they don't work. */ size_t const allocSize = 4096; result = malloc(allocSize); |