libc: break from scanf on failed non-whitespace match
This commit is contained in:
parent
92a17c3e9e
commit
0d8a512308
|
@ -58,6 +58,8 @@ int vsscanf(const char *str, const char *format, va_list ap) {
|
||||||
/* Expect exact character? */
|
/* Expect exact character? */
|
||||||
if (*str == *format) {
|
if (*str == *format) {
|
||||||
str++;
|
str++;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
format++;
|
format++;
|
||||||
|
|
Loading…
Reference in New Issue