X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgethostname.cl;h=125b83ab5c4a481d3fb75b3733d9476aa19d4d2b;hb=63b0648b562bc5a8db5ef013804b1ff4e5c52314;hp=4916ed33a939714ea61b4804a3efa07e0f0842a2;hpb=192193db6e4fbda90a840474d4aa2e8762597927;p=uffi.git diff --git a/tests/gethostname.cl b/tests/gethostname.cl index 4916ed3..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.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. ;;;; @@ -32,8 +32,8 @@ ;;; 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) @@ -47,5 +47,6 @@ (error "gethostname() failed.")) (uffi:free-foreign-object name)))) +#+test-uffi (format t "~&Hostname: ~A" (gethostname))