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
Test program for the VESA code
[syslinux.git]
/
sample
/
skipatou.c
blob
1641a131da12edda08792beb8960bd0a0937359f
1
static
inline
int
2
isdigit
(
int
ch
)
3
{
4
return
(
ch
>=
'0'
) && (
ch
<=
'9'
);
5
}
6
7
unsigned int
skip_atou
(
const char
**
s
)
8
{
9
int
i
=
0
;
10
11
while
(
isdigit
(**
s
))
12
i
=
i
*
10
+ *((*
s
)++) -
'0'
;
13
return
i
;
14
}