mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
lib: sscanf: add sscanf implementation
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>
This commit is contained in:
@@ -234,4 +234,12 @@ char *strmhz(char *buf, unsigned long hz);
|
||||
*/
|
||||
void str_to_upper(const char *in, char *out, size_t len);
|
||||
|
||||
/**
|
||||
* sscanf - Unformat a buffer into a list of arguments
|
||||
* @buf: input buffer
|
||||
* @fmt: formatting of buffer
|
||||
* @...: resulting arguments
|
||||
*/
|
||||
int sscanf(const char *buf, const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user