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