several fixes for new basic compiler

This commit is contained in:
ceriel
1988-07-01 17:30:06 +00:00
parent 4d9965a774
commit a693896a67
5 changed files with 35 additions and 13 deletions

View File

@@ -14,6 +14,11 @@ String *_hex(i)
int i;
{
char buffer[30];
register char *p = buffer;
sprintf(buffer,"%x",i);
while (*p) {
if (*p >= 'a' && *p <= 'f') *p += 'A'-'a';
p++;
}
return( (String *)_newstr(buffer));
}