[RESEND PATCH v2 09/18] lib: sscanf: add sscanf implementation

Tom Rini
2020-08-14T19:50:41Z

On Thu, Aug 06, 2020 at 12:42:52PM +0300, Anastasiia Lukianenko wrote:

> From: Andrii Anisov <andrii_anisov@epam.com>
>
> Port sscanf implementation from mini-os and introduce new
> Kconfig option to enable it: CONFIG_SSCANF. Disable by default.
>
> Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
> Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Applied to u-boot/master, thanks!

But please note:
ERROR: do not use assignment in if condition
#630: FILE: lib/sscanf.c:558:
+ if ((n = inr) < width) {

Is that really what you wanted?

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200814/24e7b149/attachment.sig>