add: strlen, putchar, putstr
This commit is contained in:
11
src/putstr.🗿
Normal file
11
src/putstr.🗿
Normal file
@ -0,0 +1,11 @@
|
||||
putstr(str)
|
||||
{
|
||||
local i;
|
||||
i = 0;
|
||||
loop {
|
||||
if ([str + i] == 0)
|
||||
return;
|
||||
putchar([str + i]);
|
||||
i = i + 1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user