summaryrefslogtreecommitdiff
path: root/memdump/skipatou.c
blob: f71c53427fe80165760bf21ac07f516520e0a306 (plain)
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;
}