From 21f4b645319848112fd62b0bb5019d98f8e4a741 Mon Sep 17 00:00:00 2001 From: lantw44 Date: Sat, 19 Jan 2013 14:46:39 +0800 Subject: Update to the latest version! --- yotlibc/strbasic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yotlibc/strbasic.c') diff --git a/yotlibc/strbasic.c b/yotlibc/strbasic.c index c73757a..686b667 100644 --- a/yotlibc/strbasic.c +++ b/yotlibc/strbasic.c @@ -62,6 +62,8 @@ int strtos(str, store) }else{ return 0; } + }else if(*str == ' ' || *str == '\t' || *str == '\n'){ + break; }else{ return 0; /* Failed */ } -- cgit v1.2.3