aboutsummaryrefslogtreecommitdiff
path: root/examples/strings.zc
diff options
context:
space:
mode:
authorGravatar Moon Flower <moonflower@elhenney.local> 2026-10-12 08:46:23 +0330
committerGravatar Moon Flower <moonflower@elhenney.local> 2026-10-12 08:46:23 +0330
commitecc350ca5c2eb50be8309c5f14f8bf0d87db9a02 (patch)
tree70e0af76a1b13affff7c6cc8aac7b3e6ef960478 /examples/strings.zc
a
Diffstat (limited to 'examples/strings.zc')
-rw-r--r--examples/strings.zc8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/strings.zc b/examples/strings.zc
new file mode 100644
index 0000000..0959ceb
--- /dev/null
+++ b/examples/strings.zc
@@ -0,0 +1,8 @@
+fn main() {
+ let name = b"zc";
+ let hi = b"hello, " + name;
+ put_s(hi); put_c(10);
+ put_n(len(hi)); put_c(32);
+ put_n(s_to_n(b"40") + 2); put_c(10);
+ return 0;
+}