Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun seekablep (stream)
- (let ((pos (file-position stream)))
- (and pos
- (unwind-protect
- (file-position stream (if (zerop pos)
- (1+ pos)
- (1- pos)))
- (file-position stream pos)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement