diff options
Diffstat (limited to 'unix/boot/spp/rpp/ratlibr/fold.r')
-rw-r--r-- | unix/boot/spp/rpp/ratlibr/fold.r | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/ratlibr/fold.r b/unix/boot/spp/rpp/ratlibr/fold.r new file mode 100644 index 00000000..d6530e90 --- /dev/null +++ b/unix/boot/spp/rpp/ratlibr/fold.r @@ -0,0 +1,16 @@ +include defs + +# fold - fold all letters in a string to lower case + + subroutine fold (token) + character token (ARB) + + character clower + + integer i + + for (i = 1; token (i) != EOS; i = i + 1) + token (i) = clower (token (i)) + + return + end |