Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created September 10, 2012 03:01
Show Gist options
  • Select an option

  • Save joekarma/3688592 to your computer and use it in GitHub Desktop.

Select an option

Save joekarma/3688592 to your computer and use it in GitHub Desktop.
Read `n' characters from stream.
(defun read-n-characters (n &optional (stream *standard-input*))
(let ((seq (make-string n)))
(read-sequence seq stream)
seq))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment