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 /sml/trunk/src/smlnj-c/cutil.sml
ViewVC logotype

View of /sml/trunk/src/smlnj-c/cutil.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 223 - (download) (annotate)
Sat Apr 17 16:27:01 1999 UTC (22 years, 6 months ago) by monnier
Original Path: sml/branches/SMLNJ/src/smlnj-c/cutil.sml
File size: 499 byte(s)
version 110.11
(* 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 =
	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 *)

ViewVC Help
Powered by ViewVC 1.0.0