diff options
author | kdx <kikoodx@paranoici.org> | 2023-06-10 19:07:14 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-06-10 19:09:45 +0200 |
commit | 44e3cdde1f4893abc5ee2ffd1837c329e79a937e (patch) | |
tree | 6e31cd906dcecfa5212ca895bdaf9c005afc3801 | |
parent | b3e5203f6260cb400d7c73b56f91eddea6b24502 (diff) | |
download | golem-44e3cdde1f4893abc5ee2ffd1837c329e79a937e.tar.gz |
cool cool
-rw-r--r-- | samples/helloworld.golem | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/samples/helloworld.golem b/samples/helloworld.golem index aac5202..9ec0086 100644 --- a/samples/helloworld.golem +++ b/samples/helloworld.golem @@ -3,21 +3,7 @@ global str[32]; main() { local i; - print("uwu"); - wrt '\n'; - - strappend(str, 'H'); - strappend(str, 'e'); - strappend(str, 'L'); - strappend(str, 'l'); - strappend(str, 'o'); - strappend(str, ' '); - strappend(str, 'W'); - strappend(str, 'o'); - strappend(str, 'R'); - strappend(str, 'l'); - strappend(str, 'd'); - strappend(str, '!'); + strcpy(str, "Hello, World!"); strappend(str, '\n'); i = 0; @@ -70,10 +56,6 @@ uprint(s) { } } -nl() { - wrt '\n'; -} - toupper(c) { if (c >= 'a' & c <= 'z') return c - 32; |