diff options
Diffstat (limited to 'putstr.lang')
-rw-r--r-- | putstr.lang | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/putstr.lang b/putstr.lang deleted file mode 100644 index f132bda..0000000 --- a/putstr.lang +++ /dev/null @@ -1,19 +0,0 @@ -func putstr(char[] str) { - int i := 0; - while (str[i] != '\0') { - putc(str[i]); - i = i + 1; - } -} - -func int main() { - char[] str := new char[100]; - str[0] = 'k'; - str[1] = 'a'; - str[2] = str[1]; - str[3] = 's'; - str[4] = '\n'; - str[5] = '\0'; - putstr(str); - return 0; -} |