mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
scanf() fixes from kfrolov: 1) sscanf() function hangs in the following example: sscanf(2, %u,%u,%u,%u, ...), 2) sscanf() returns incorrect number of parsed numbers if some arguments can't be parsed: sscanf(=2, %u,%u,%u,%u,...)==1 instead of 0, and 3) using of char* instead of const char* in vsscanf function leads to warnings from GCC.
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ int vfprintf(FAR FILE *stream, const char *format, va_list ap);
|
||||
int vsprintf(FAR char *buf, const char *format, va_list ap);
|
||||
int avsprintf(FAR char **ptr, const char *fmt, va_list ap);
|
||||
int vsnprintf(FAR char *buf, size_t size, const char *format, va_list ap);
|
||||
int vsscanf(char *buf, const char *s, va_list ap);
|
||||
int vsscanf(FAR const char *buf, FAR const char *s, va_list ap);
|
||||
|
||||
/* Operations on file descriptors including:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user