projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r1528: *** empty log message ***
[uffi.git]
/
examples
/
gethostname.cl
diff --git
a/examples/gethostname.cl
b/examples/gethostname.cl
index 4916ed33a939714ea61b4804a3efa07e0f0842a2..fbb3539a6230914c3bd717bc992ece1e95c4f292 100644
(file)
--- a/
examples/gethostname.cl
+++ b/
examples/gethostname.cl
@@
-9,7
+9,7
@@
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: gethostname.cl,v 1.
1 2002/03/09 19:5
5:33 kevin Exp $
+;;;; $Id: gethostname.cl,v 1.
3 2002/03/10 04:1
5:33 kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
;;;;
;;;; This file is part of UFFI.
;;;;
@@
-32,7
+32,7
@@
;;; This example is inspired by the example on the CL-Cookbook web site
;;; This example is inspired by the example on the CL-Cookbook web site
-(uffi:def-
routine
("gethostname" c-gethostname)
+(uffi:def-
function
("gethostname" c-gethostname)
((name :c-string)
(len :int))
:returning :int)
((name :c-string)
(len :int))
:returning :int)
@@
-47,5
+47,6
@@
(error "gethostname() failed."))
(uffi:free-foreign-object name))))
(error "gethostname() failed."))
(uffi:free-foreign-object name))))
+#+test-uffi
(format t "~&Hostname: ~A" (gethostname))
(format t "~&Hostname: ~A" (gethostname))