|
From: | L A Walsh |
Subject: | Re: Feature Request: scanf-like parsing |
Date: | Thu, 21 Jan 2021 21:36:35 -0800 |
User-agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
On 2021/01/21 21:29, William Park wrote:
Since you're dealing with strings, only %s, %c, and %[] are sufficient.
You can't read numbers in sscanf? _Might_ be nice to be able to read a float as well even though it would need to be access/stored as a string. Would compliment ability to write out a floating point value using %f from a string. Why would you do that? To use the floating point round of printf to get float-vals to round up. Eh, would prolly want to scan it in with 2 integers now that I think about it (before + after decimal).
[Prev in Thread] | Current Thread | [Next in Thread] |