Ok, Mark did it the way i would have too, but... heres another way. The same basic theory but i kept the char's in the string char's so mine dosent convert to ascii numbers it just parses out the sting into a list, reverses it and then puts it back together again.
;;;===================================================================;
;;; String->StrList ;
;;;-------------------------------------------------------------------;
;;; This procedure will take a given string and parse it out to a ;
;;; list of charaters. ;
;;; ;
;;; Arguments: Str - A charater array -e.g. "This is a test" ;
;;; ;
;;; Rerunts: ("T" "h" "i" "s" " " "i" "s" " " "a" " " "t" "e" "s" "t");
;;; ;
;;; Author: John Kaul (Se7en) ;
;;;===================================================================;
(defun String->StrList (str / alst cntr)
(if (= cntr '()) (setq cntr 1))
(while (<= cntr (strlen str))
(setq alst (cons (substr str cntr 1) alst)
cntr (1+ cntr)))
(reverse alst)
)
;;;===================================================================;
;;; StrList->String ;
;;;-------------------------------------------------------------------;
;;; This procedure will take a given list of charaters and paste them ;
;;; together into one string. ;
;;; ;
;;; Arguments: StrList - A list of strings. ;
;;; -e.g.: ("T" "e" "s" "t") ;
;;; ;
;;; Returns: "Test" ;
;;; ;
;;; Author: John Kaul (Se7en) ;
;;;===================================================================;
(defun StrList->String (StrList / strlst)
(setq strlst "")
(mapcar '(lambda (x) (setq strlst (strcat strlst x))) strlist)
strlst
)
(defun main (str)
(StrList->String (reverse (String->StrList str))))
;;; Command: (main "This is a test of the national...")
;;; > "...lanoitan eht fo tset a si sihT"