r4686: Auto commit for Debian build
[kmrcl.git] / strings.lisp
index 94eaed406718924b34aca52e8cf03c02afe8880b..975f1e2dcaad34dd1ff7b98d12ab1975a15cbdd8 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: strings.lisp,v 1.12 2003/04/29 00:43:56 kevin Exp $
+;;;; $Id: strings.lisp,v 1.14 2003/04/29 00:49:09 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
   (let ((len (length s)))
     (if (plusp len)
        (subseq s 0 (1- len))
-       s))
+       s)))
+
+(defun nstring-trim-last-character (s)
+  "Return the string less the last character"
+  (let ((len (length s)))
+    (if (plusp len)
+       (nsubseq s 0 (1- len))
+       s)))
 
 (defun string-hash (str &optional (bitmask 65535))
   (let ((hash 0))