aboutsummaryrefslogtreecommitdiffstats
path: root/dos/atou.c
blob: 27663704ddeca250a4888435b628e96a82d2af91 (plain)
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;
}