mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
libc/strptime:_conv_num skip space
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -413,6 +413,9 @@ _conv_num(const unsigned char **buf, int *dest, int llim, int ulim)
|
||||
int result = 0;
|
||||
int rulim = ulim;
|
||||
|
||||
while (ispace(**buf))
|
||||
*buf++;
|
||||
|
||||
if (**buf < '0' || **buf > '9')
|
||||
return (0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user