diff --git a/src/putchar.🗿 b/src/putchar.🗿 new file mode 100644 index 0000000..7514988 --- /dev/null +++ b/src/putchar.🗿 @@ -0,0 +1,3 @@ +putchar(c){ + wrt c; +} diff --git a/src/putstr.🗿 b/src/putstr.🗿 new file mode 100644 index 0000000..b0d64ae --- /dev/null +++ b/src/putstr.🗿 @@ -0,0 +1,11 @@ +putstr(str) +{ + local i; + i = 0; + loop { + if ([str + i] == 0) + return; + putchar([str + i]); + i = i + 1; + } +} diff --git a/src/strlen.🗿 b/src/strlen.🗿 new file mode 100644 index 0000000..f7d9911 --- /dev/null +++ b/src/strlen.🗿 @@ -0,0 +1,9 @@ +strlen(str) { + local i; + i = 0; + loop { + if ([str + i] == 0) + return (i); + i = i + 1; + } +}