crop: use strtol() instead of atoi()
This commit is contained in:
parent
953387d7ba
commit
2513946536
1 changed files with 1 additions and 5 deletions
|
@ -27,11 +27,7 @@ getint(char *s)
|
|||
{
|
||||
if(s == nil)
|
||||
usage();
|
||||
if(*s == '+')
|
||||
return atoi(s+1);
|
||||
if(*s == '-')
|
||||
return -atoi(s+1);
|
||||
return atoi(s);
|
||||
return strtol(s, 0, 0);
|
||||
}
|
||||
|
||||
Rectangle
|
||||
|
|
Loading…
Reference in a new issue