repo.or.cz
/
hdt-cyring.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hdt: Preventing dump mode if no PXE config
[hdt-cyring.git]
/
dos
/
atou.c
blob
e21736d1558457f65c292aa0789d17719f6845f3
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
}