aboutsummaryrefslogtreecommitdiffstats
path: root/sample/atou.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample/atou.c')
-rw-r--r--sample/atou.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sample/atou.c b/sample/atou.c
deleted file mode 100644
index 73b0bb79..00000000
--- a/sample/atou.c
+++ /dev/null
@@ -1,12 +0,0 @@
-static inline int isdigit(int ch)
-{
- return (ch >= '0') && (ch <= '9');
-}
-
-unsigned int atou(const char *s)
-{
- unsigned int i = 0;
- while (isdigit(*s))
- i = i * 10 + (*s++ - '0');
- return i;
-}