home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
gnu
/
gawk-2.15.5-src.lha
/
gawk-2.15.5
/
test
/
reverse.awk
< prev
next >
Wrap
Text File
|
1993-10-20
|
225b
|
14 lines
#this program creates palindromic output - slightly modified from Gawk Manual
{
rev($0, length)
}
function rev(str, len) {
if (len == 0) {
print " ", $0
return
}
printf "%c", substr(str, len, 1)
rev(str, len - 1)
}