r10608: update license
[uffi.git] / examples / compress.lisp
index 1229be56e75ac1962099665ffb398786821cce6e..3f3e838fc182eced393a61d0ced7ea0c2c712342 100644 (file)
@@ -7,13 +7,10 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: compress.lisp,v 1.3 2002/12/09 16:30:20 kevin Exp $
+;;;; $Id$
 ;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
 ;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
 (in-package :cl-user)
 (progn
   (flet ((print-results (str)
           (multiple-value-bind (compressed len) (compress str)
+            (let ((*print-length* nil))
               (format t "~&(compress ~S) => " str)
-              (dotimes (i len)
-                (format t "~X" (char-code (char compressed i))))
-              (format t ",~D" len))))
+              (format t "~S~%" (map 'list #'char-code compressed))))))
     (print-results "")
     (print-results "test")
     (print-results "test2")))