forked from starnakin/IronGOLEM
clean and opti
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
putstr(str)
|
||||
{
|
||||
local i = 0;
|
||||
local tmp = str;
|
||||
if (str == NULL) {
|
||||
putstr("(null)");
|
||||
return NULL;
|
||||
}
|
||||
loop {
|
||||
if ([str + i] == 0)
|
||||
if ([tmp] == 0)
|
||||
return str;
|
||||
putchar([str + i]);
|
||||
i = i + 1;
|
||||
putchar([tmp]);
|
||||
tmp++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user