source:
bootcd/isolinux/syslinux-6.03/dos/skipatou.c
Last change on this file was e16e8f2, checked in by , 3 years ago | |
---|---|
|
|
File size: 151 bytes |
Rev | Line | |
---|---|---|
[e16e8f2] | 1 | #include "mystuff.h" |
2 | ||
3 | unsigned int skip_atou(const char **s) | |
4 | { | |
5 | int i = 0; | |
6 | ||
7 | while (isdigit(**s)) | |
8 | i = i * 10 + *((*s)++) - '0'; | |
9 | return i; | |
10 | } |
Note: See TracBrowser
for help on using the repository browser.