index
:
universe
feat/dwm-pipe
laptop
master
phone
selfhost
Fundamental libraries and executables
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
base
/
string
/
raw
/
atoi.c
blob: 8084e3e0596d01a69412e8cc6dda70703abc7a78 (
plain
)
1
2
3
4
5
6
7
8
9
int
str
ยท
atoi
(
char
*
s
)
{
int
n
=
0
;
while
(
*
s
)
n
=
10
*
n
+
(
*
s
++
-
'0'
);
return
n
;
}