summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-10 19:07:14 +0200
committerkdx <kikoodx@paranoici.org>2023-06-10 19:09:45 +0200
commit44e3cdde1f4893abc5ee2ffd1837c329e79a937e (patch)
tree6e31cd906dcecfa5212ca895bdaf9c005afc3801
parentb3e5203f6260cb400d7c73b56f91eddea6b24502 (diff)
downloadgolem-44e3cdde1f4893abc5ee2ffd1837c329e79a937e.tar.gz
cool cool
-rw-r--r--samples/helloworld.golem20
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;