Yes, but as @sortiecat notes later in thread, printf has no good reason to malloc at all.https://twitter.com/sortiecat/status/890975633718759424 …
-
-
How do you do unlimited positional parameters without memory allocation below quadratic time? You would have to start over the va_arg.
-
It's not unlimited. The limit is finite and allowed to be as low as 9. O(9²) is O(1).
-
Bug without unlimited storage, unlimited positional args are at least cubic, not quadratic. O(strlen(fmt)*nargs²).
-
Does Musl have a limit?
-
Yes, 9. It doesn't cubic rescan. It has a [9] array.
-
I like that. Has this ever been a compatibility problem? What does other implementations do?
-
IIRC just once. Don't remember what program.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.