X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fstrtol.cl;h=a115b2a8019e856058a0b21edbaf14d0a247574f;hb=10a314bf1195fa1fd8c131808ef11480ef353fb3;hp=8beeddf4c67819308787d9fcd329fe64621a5469;hpb=11f2368e2aa756f12f698ce3f2d5182d2299dafc;p=uffi.git diff --git a/examples/strtol.cl b/examples/strtol.cl index 8beeddf..a115b2a 100644 --- a/examples/strtol.cl +++ b/examples/strtol.cl @@ -1,4 +1,4 @@ -;;;; -*- Mode: ANSI-Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: strtol.cl,v 1.10 2002/03/18 22:47:57 kevin Exp $ +;;;; $Id: strtol.cl,v 1.12 2002/03/23 16:32:39 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -36,7 +36,7 @@ Condition flag is T if all of string parses as a long, NIL if their was no string at all, or an integer indicating position in string of first non-valid character" (let* ((str-native (uffi:convert-to-foreign-string str)) - (endptr (uffi:allocate-foreign-object char-ptr)) + (endptr (uffi:allocate-foreign-object 'char-ptr)) (value (c-strtol str-native endptr base)) (endptr-value (uffi:deref-pointer endptr 'char-ptr)))