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

5 lines
207 B
Common Lisp
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
(defun get-host-name ()
2015-11-18 06:14:39 +00:00
#+(or sbcl ccl) (machine-instance)
2013-04-10 21:29:02 -07:00
#+clisp (let ((s (machine-instance))) (subseq s 0 (position #\Space s)))
2015-11-18 06:14:39 +00:00
#-(or sbcl ccl clisp) (error "get-host-name not implemented"))