diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-25 16:38:31 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-25 16:38:31 -0700 |
commit | 223f5298620a3b3be9fbd206e2a3fbb388487da0 (patch) | |
tree | 286635488927e801c646d80e21d6a194261ed75b /memdump/skipatou.c | |
parent | 57556d8f612128679464667ce124ddc611795db2 (diff) | |
parent | a81fb89a445ae0dca286c861d8d51f705533df0d (diff) | |
download | syslinux-3.60-pre2.tar.gz |
Merge commit 'syslinux-3.52' into gpxe-supportsyslinux-3.60-pre2
Diffstat (limited to 'memdump/skipatou.c')
-rw-r--r-- | memdump/skipatou.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/memdump/skipatou.c b/memdump/skipatou.c new file mode 100644 index 00000000..f71c5342 --- /dev/null +++ b/memdump/skipatou.c @@ -0,0 +1,10 @@ +#include "mystuff.h" + +unsigned int skip_atou(const char **s) +{ + int i=0; + + while (isdigit(**s)) + i = i*10 + *((*s)++) - '0'; + return i; +} |