;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: gethostname.cl,v 1.1 2002/03/09 19:55:33 kevin Exp $
+;;;; $Id: gethostname.cl,v 1.4 2002/03/10 11:13:07 kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
;;; This example is inspired by the example on the CL-Cookbook web site
-(uffi:def-routine ("gethostname" c-gethostname)
- ((name :c-string)
+(uffi:def-function ("gethostname" c-gethostname)
+ ((name :cstring)
(len :int))
:returning :int)
(error "gethostname() failed."))
(uffi:free-foreign-object name))))
+#+test-uffi
(format t "~&Hostname: ~A" (gethostname))