X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fstrtol.cl;h=518eb2909fa102b95ef93f48a3e7136199d98bd3;hb=5d0f4d69b681b5dc15ac423442de2596da9e36d9;hp=387d23b26b639b4a8fbf7705d1ecc1a20ccf0b14;hpb=e7691ffb0055b6a2c27639838b3b594e808f8973;p=uffi.git diff --git a/examples/strtol.cl b/examples/strtol.cl index 387d23b..518eb29 100644 --- a/examples/strtol.cl +++ b/examples/strtol.cl @@ -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.6 2002/03/10 11:13:07 kevin Exp $ ;;;; ;;;; This file is part of UFFI. ;;;; @@ -29,14 +29,14 @@ (in-package :cl-user) -(uffi:def-type char-ptr (* :unsigned-char)) +(uffi:def-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)