simpler atoi for LangDLL and Banner

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5836 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-12 17:45:03 +00:00
parent 41836a0f4a
commit f3350670fb
2 changed files with 16 additions and 0 deletions

View file

@ -99,6 +99,21 @@ int NSISCALL myatoi(const char *s)
return v;
}
unsigned NSISCALL myatou(const char *s)
{
unsigned int v=0;
for (;;)
{
unsigned int c=*s++;
if (c >= '0' && c <= '9') c-='0';
else break;
v*=10;
v+=c;
}
return v;
}
int NSISCALL myatoi_or(const char *s)
{
int v=0;