I just re-checked with ltrace, and yes you're right, it does in fact call snprintf() and frexp() to format floats.
I had done a similar check some time ago, and was surprised to not find any libc calls related to Perl's s/printf() (which is why I posted) — but that must have been without a float format specifier being used... (rather only integer formatting like %d, %u etc.) As to the creation of floats, however, I don't see any calls to libc or libm. Any idea what function that would be (just out of curiosity)?
In reply to Re^4: sprintf values
by almut
in thread sprintf values
by daptal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |