repo.or.cz
/
syslinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Makefile: add isohybrid as an IOBJECT
[syslinux.git]
/
sample
/
atou.c
blob
84475b6880f8e492f1f301e2c011772bcfd85871
1
static
inline
int
2
isdigit
(
int
ch
)
3
{
4
return
(
ch
>=
'0'
) && (
ch
<=
'9'
);
5
}
6
7
unsigned int
atou
(
const char
*
s
)
8
{
9
unsigned int
i
=
0
;
10
while
(
isdigit
(*
s
))
11
i
=
i
*
10
+ (*
s
++ -
'0'
);
12
return
i
;
13
}