X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fcompress.lisp;h=10634a3ea0ece15d6b9897d38390a176f67244f0;hb=87acde9ae931ba8ac7bd486809f6dab3b2448790;hp=1229be56e75ac1962099665ffb398786821cce6e;hpb=276c8f34b3070db313908a6d49a1ada16923fc21;p=uffi.git diff --git a/examples/compress.lisp b/examples/compress.lisp index 1229be5..10634a3 100644 --- a/examples/compress.lisp +++ b/examples/compress.lisp @@ -7,7 +7,7 @@ ;;;; 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 ;;;; @@ -95,10 +95,9 @@ (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")))