aboutsummaryrefslogtreecommitdiff
path: root/stdlib.rip
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib.rip')
-rw-r--r--stdlib.rip19
1 files changed, 13 insertions, 6 deletions
diff --git a/stdlib.rip b/stdlib.rip
index af428c3..432a9cf 100644
--- a/stdlib.rip
+++ b/stdlib.rip
@@ -1,7 +1,7 @@
0I[prints string; destructive]
F<strprint>[
<strrev>
- 97aDm
+ 28p
SDW[
D3RD3rM o D3rq
D]
@@ -10,23 +10,23 @@ F<strprint>[
0I[takes string char; returns string+char]
F<strpush>[
- S97aDmma
+ S28pma
]
0I[reverses string in place]
F<strrev>[
0S
DW[
- D 97aDm D 3r M 3r q 3r S 97aDm m a S
+ D 28p D 3r M 3r q 3r S 28p m a S
D]
P
]
0I[concatenates two strings]
F<strcat>[
- <strrev> 97aDm S
+ <strrev> 28p S
DW[
- S D 3r S D 3R M 4R 97aDmma 3r S D 3r q
+ S D 3r S D 3R M 4R 28pma 3r S D 3r q
D]
PP
]
@@ -35,7 +35,7 @@ F<strcat>[
F<mkstr>[
0S
DW[
- D2aR 3R 97aDm m a S d
+ D2aR 3R 28p m a S d
D]
P
]
@@ -145,3 +145,10 @@ F<varget>[
<varhaulup>
SP
]
+
+
+0I[takes socket and string; sends string to socket]
+F<strsend>[
+ <strrev>
+ DW[D28pM3RSwS28pqD]P
+]