r1691: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 28 Mar 2002 17:12:47 +0000 (17:12 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 28 Mar 2002 17:12:47 +0000 (17:12 +0000)
examples/atoifl.cl
tests/atoifl.cl

index d6e48fdbab660651a5fed91778b13ff02d0d6a94..3db5a8bee4b2599f91bb065b2d547fd4bce1b9e0 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Mar 2002
 ;;;;
-;;;; $Id: atoifl.cl,v 1.1 2002/03/25 01:24:35 kevin Exp $
+;;;; $Id: atoifl.cl,v 1.2 2002/03/28 17:11:11 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
     ((str :cstring))
   :returning :int)
 
+(uffi:def-function ("atol" c-atoi) 
+    ((str :cstring))
+  :returning :long)
+
+(uffi:def-function ("atof" c-atoi) 
+    ((str :cstring))
+  :returning :double)
+
 (defun atoi (str)
   "Returns a int from a string."
   (uffi:with-cstring (str-cstring str)
index d6e48fdbab660651a5fed91778b13ff02d0d6a94..3db5a8bee4b2599f91bb065b2d547fd4bce1b9e0 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Mar 2002
 ;;;;
-;;;; $Id: atoifl.cl,v 1.1 2002/03/25 01:24:35 kevin Exp $
+;;;; $Id: atoifl.cl,v 1.2 2002/03/28 17:11:11 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
     ((str :cstring))
   :returning :int)
 
+(uffi:def-function ("atol" c-atoi) 
+    ((str :cstring))
+  :returning :long)
+
+(uffi:def-function ("atof" c-atoi) 
+    ((str :cstring))
+  :returning :double)
+
 (defun atoi (str)
   "Returns a int from a string."
   (uffi:with-cstring (str-cstring str)