Small fixes for more robustness (more for testing).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1643 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-12-01 01:16:55 +00:00
parent 7d5cacecab
commit 777cbdb6bc
3 changed files with 44 additions and 12 deletions

View file

@ -102,6 +102,8 @@ retry:
while(_int)
{
tempbuffer[i] = _int%16 + '0';
if (tempbuffer[i] > '9')
tempbuffer[i] = tempbuffer[i] - ':' + 'a';
_int/=16;
i--;
}
@ -466,6 +468,7 @@ float atof(char *str)
}
if (*str == '.')
{ //each time we find a new digit, decrease the value of the following digits.
str++;
while(1)
{
if (*str >= '0' && *str <= '9')