diff options
author | lantw44 <lantw44@gmail.com> | 2013-01-19 14:46:39 +0800 |
---|---|---|
committer | lantw44 <lantw44@gmail.com> | 2013-01-19 14:46:39 +0800 |
commit | 21f4b645319848112fd62b0bb5019d98f8e4a741 (patch) | |
tree | 7825680d2f45aaaf8f263cdf4ef7a3bb9d16943b /yotlibc/strbasic.c | |
parent | d16cda16bbc5f5d51cce15584014cccafbcf08da (diff) | |
download | yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.tar yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.tar.gz yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.tar.bz2 yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.tar.lz yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.tar.xz yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.tar.zst yotos-21f4b645319848112fd62b0bb5019d98f8e4a741.zip |
Update to the latest version!
Diffstat (limited to 'yotlibc/strbasic.c')
-rw-r--r-- | yotlibc/strbasic.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ } |