Compare commits

..

2 Commits

Author SHA1 Message Date
fb16ffa056 Add docstring to printf 2020-03-26 05:35:14 -04:00
2cb0f8cf31 Add real copyright 2020-03-26 05:34:32 -04:00
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
ISC License Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC") ISC License
Copyright (c) 1995-2003 by Internet Software Consortium Copyright (c) 2020 by Logen Kain
Permission to use, copy, modify, and /or distribute this software for any Permission to use, copy, modify, and /or distribute this software for any
purpose with or without fee is hereby granted, provided that the above copyright purpose with or without fee is hereby granted, provided that the above copyright

View File

@ -1,6 +1,7 @@
;;;; Make a macro that is like C's printf statement ;;;; Make a macro that is like C's printf statement
(defmacro printf (string &rest vars) (defmacro printf (string &rest vars)
"Pretend to be printf... except preceding dec places"
`(format t ,(printf-to-format string) ,@vars)) `(format t ,(printf-to-format string) ,@vars))
(defun replace-all (string part replacement &key (test #'char=)) (defun replace-all (string part replacement &key (test #'char=))