clean and opti

This commit is contained in:
2023-07-25 09:48:20 +02:00
parent 2b97d38b7e
commit 09e0d32c15
6 changed files with 11 additions and 26 deletions

View File

@ -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++;
}
}