summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/dos/skipatou.c
blob: 655ab565273c84bdb908cce62eed3783249199bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "mystuff.h"

unsigned int skip_atou(const char **s)
{
    int i = 0;

    while (isdigit(**s))
	i = i * 10 + *((*s)++) - '0';
    return i;
}