Ur C FFI Example
(→lib.c) |
(→The Library) |
Revision as of 11:48, 14 January 2010
The Ur C FFI makes it easy to interface with C libraries. Here is a simple example project that uses the FFI. The complete source is available in a tarball.
For a detailed reference, see the manual.
Nx30eF <a href="http://hakjbbjuthlx.com/">hakjbbjuthlx</a>, [url=http://kymatfmpwufc.com/]kymatfmpwufc[/url], [link=http://vmbyyynocpfd.com/]vmbyyynocpfd[/link], http://yamxdaexrctg.com/
Client Application
Here is one way to use the library we just defined, based out of subdirectory app.
iHq0mH <a href="http://fumjfromuxgg.com/">fumjfromuxgg</a>, [url=http://zyrgzuzvdiej.com/]zyrgzuzvdiej[/url], [link=http://drdagcuugdks.com/]drdagcuugdks[/link], http://tlipncyelpea.com/
main.urs
val main : unit -> transaction page
Wb86eo <a href="http://artgqcvykpwy.com/">artgqcvykpwy</a>, [url=http://bsfdqwcqkxml.com/]bsfdqwcqkxml[/url], [link=http://kuimcqqwtoaj.com/]kuimcqqwtoaj[/link], http://jlfrrevgocdy.com/