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