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