r1546: *** empty log message ***
[uffi.git] / examples / strtol.cl
index 387d23b26b639b4a8fbf7705d1ecc1a20ccf0b14..57d2b45b37166bd207d8e6a2223aed439e479e1b 100644 (file)
@@ -9,7 +9,7 @@
 ;;;;
 ;;;; Copyright (c) 2002 Kevin M. Rosenberg
 ;;;;
-;;;; $Id: strtol.cl,v 1.4 2002/03/10 04:36:04 kevin Exp $
+;;;; $Id: strtol.cl,v 1.7 2002/03/11 18:00:57 kevin Exp $
 ;;;;
 ;;;; This file is part of UFFI. 
 ;;;;
 
 (in-package :cl-user)
 
-(uffi:def-type char-ptr (* :unsigned-char))
+(uffi:def-foreign-type char-ptr (* :char))
   
-;; This example does not use :c-string to pass the input string since
+;; This example does not use :cstring to pass the input string since
 ;; the routine needs to do pointer arithmetic to see how many characters
 ;; were parsed
 
 (uffi:def-function ("strtol" c-strtol) 
-    ((nptr (* :unsigned-char))
+    ((nptr (* :char))
      (endptr (* char-ptr))
      (base :int))
   :returning :long)