SCM Repository
[smlnj] / sml / releases / release-110.35 / src / ml-nlffi-lib / zstring.sig |
View of /sml/releases/release-110.35/src/ml-nlffi-lib/zstring.sig
Parent Directory
|
Revision Log
Revision 917 -
(download)
(as text)
(annotate)
Fri Aug 24 21:13:58 2001 UTC (19 years, 7 months ago)
File size: 915 byte(s)
Fri Aug 24 21:13:58 2001 UTC (19 years, 7 months ago)
File size: 915 byte(s)
This commit was manufactured by cvs2svn to create tag 'release-110.35'.
(* * Functions for translating between 0-terminated C strings and native * ML strings. * * (C) 2001, Lucent Technologies, Bell Laboratories * * author: Matthias Blume (blume@kurims.kyoto-u.ac.jp) *) signature ZSTRING = sig type 'c zstring = (C.uchar, 'c) C.ptr type 'c zstring' = (C.uchar, 'c) C.ptr' (* the C strlen function *) val length : 'c zstring -> int val length' : 'c zstring' -> int (* make ML string from 0-terminated C string *) val toML : 'c zstring -> string val toML' : 'c zstring' -> string (* Copy contents of ML string into C string and add terminating 0. *) val cpML : { from: string, to: C.rw zstring } -> unit val cpML' : { from: string, to: C.rw zstring' } -> unit (* Make C-duplicate of ML string (allocate memory and then copy). *) val dupML : string -> C.rw zstring option val dupML' : string -> C.rw zstring' option end
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |