X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgethostname.cl;h=125b83ab5c4a481d3fb75b3733d9476aa19d4d2b;hb=4d0afb9bedcc103e882dce47d0cdc57a0b79e433;hp=0b3ceda7820c3c3102714acdabf3bd7aa5a82ce8;hpb=bc5968d54cee0416db7db9ee2c7295489170bccf;p=uffi.git diff --git a/tests/gethostname.cl b/tests/gethostname.cl index 0b3ceda..125b83a 100644 --- a/tests/gethostname.cl +++ b/tests/gethostname.cl @@ -9,7 +9,7 @@ ;;;; ;;;; Copyright (c) 2002 Kevin M. Rosenberg ;;;; -;;;; $Id: gethostname.cl,v 1.2 2002/03/09 21:19:31 kevin Exp $ +;;;; $Id: gethostname.cl,v 1.4 2002/03/10 11:13:07 kevin Exp $ ;;;; ;;;; This file is part of UFFI. ;;;; @@ -33,7 +33,7 @@ ;;; This example is inspired by the example on the CL-Cookbook web site (uffi:def-function ("gethostname" c-gethostname) - ((name :c-string) + ((name :cstring) (len :int)) :returning :int) @@ -47,5 +47,6 @@ (error "gethostname() failed.")) (uffi:free-foreign-object name)))) +#+test-uffi (format t "~&Hostname: ~A" (gethostname))