aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sample/skipatou.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sample/skipatou.c b/sample/skipatou.c
index 1641a131..ea2dbadc 100644
--- a/sample/skipatou.c
+++ b/sample/skipatou.c
@@ -1,14 +1,13 @@
-static inline int
-isdigit(int ch)
+static inline int isdigit(int ch)
{
- return (ch >= '0') && (ch <= '9');
+ return (ch >= '0') && (ch <= '9');
}
unsigned int skip_atou(const char **s)
{
- int i=0;
+ int i = 0;
- while (isdigit(**s))
- i = i*10 + *((*s)++) - '0';
- return i;
+ while (isdigit(**s))
+ i = i * 10 + *((*s)++) - '0';
+ return i;
}