commit | 76d05dc695b06c4e987bb8078f78032441e1430c | [log] [tgz] |
---|---|---|
author | Greg Hartman <ghartman@google.com> | Wed Nov 23 15:51:27 2016 -0800 |
committer | Greg Hartman <ghartman@google.com> | Wed Nov 23 15:52:24 2016 -0800 |
tree | 7b567ae0c1fde3fd699b8839ca39b54aa1c10046 | |
parent | 49db3fec5f3681cf8fafd57c8987fcff2d40bc89 [diff] [blame] |
Clean checkin of the 6.03 code BUG: 32495852 Change-Id: I5038a3bb41e217380c1188463daec07b1e9b6b48
diff --git a/dos/skipatou.c b/dos/skipatou.c new file mode 100644 index 0000000..655ab56 --- /dev/null +++ b/dos/skipatou.c
@@ -0,0 +1,10 @@ +#include "mystuff.h" + +unsigned int skip_atou(const char **s) +{ + int i = 0; + + while (isdigit(**s)) + i = i * 10 + *((*s)++) - '0'; + return i; +}