Beginning of a VESA graphical console driver
[syslinux.git] / sample / skipatou.c
blob1641a131da12edda08792beb8960bd0a0937359f
1 static inline int
2 isdigit(int ch)
4 return (ch >= '0') && (ch <= '9');
7 unsigned int skip_atou(const char **s)
9 int i=0;
11 while (isdigit(**s))
12 i = i*10 + *((*s)++) - '0';
13 return i;