RosettaCodeData/Task/Hostname/Common-Lisp/hostname-1.lisp

5 lines
207 B
Common Lisp
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(defun get-host-name ()
#+(or sbcl ccl) (machine-instance)
#+clisp (let ((s (machine-instance))) (subseq s 0 (position #\Space s)))
#-(or sbcl ccl clisp) (error "get-host-name not implemented"))