(2006-08-06) rescue-bootcd
This commit is contained in:
14
extra/syslinux-3.09/sample/skipatou.c
Normal file
14
extra/syslinux-3.09/sample/skipatou.c
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user