This repository has been archived on 2023-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RescueBootCD/extra/syslinux-3.09/sample/skipatou.c

15 lines
200 B
C

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;
}