repo.or.cz
/
tangerine.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gcc 4 fixes (lvalue casts)
[tangerine.git]
/
scripts
/
strtoint.c
blob
50ca0c218fedaff08e027504e9e70778c046c497
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
main
(
int
argc
,
char
**
argv
)
5
{
6
if
(
argc
==
1
)
7
puts
(
"0"
);
8
else
9
printf
(
"%d
\n
"
,
strtol
(
argv
[
1
],
NULL
,
0
));
10
11
return
0
;
12
}
/* main */