Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /smlnj-c/releases/release-110.64/cutil.sml
ViewVC logotype

View of /smlnj-c/releases/release-110.64/cutil.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2663 - (download) (annotate)
Thu May 31 22:17:41 2007 UTC (12 years ago) by blume
File size: 499 byte(s)
Release 110.64
(* cutil.sml
 *
 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
 *
 * functor producing structures with C functions required for
 * the SML/NJ C interface.
 *)

functor CUtil (structure C: C_CALLS) : C_UTIL =
    struct
	open C

	val ptos' = registerAutoFreeCFn("ptos",[CaddrT],CstringT)
	fun ptos p = let val Cstring s = ptos' [Caddr p] in s end
        val ptoi' = registerAutoFreeCFn("ptoi",[CaddrT],CintT)
        fun ptoi p = let val Cint i = ptoi' [Caddr p] in i end
    end (* functor CUtil *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0