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

unsigned int atou(const char *s)
{
    unsigned int i = 0;
    while (isdigit(*s))
	i = i * 10 + (*s++ - '0');
    return i;
}