On Sat, May 27, 2017 at 06:15:47AM -0700, horrido wrote:
> Yes, I did. I found it difficult to understand. It would be nice to have some
> clear examples in the documentation, for example, really simple and common
> situations such as a C function returning an integer in a
> passed-by-reference argument.

I've written such a thing:

  https://github.com/PierceNg/libffidemo

See these functions in the C library:

  int get_by_filling_pointer(demo_thing *pthing, int *pvalue)
  int get_by_returned_value(demo_thing *pthing)

Two follow-up blog posts:

  http://www.samadhiweb.com/blog/2016.03.12.demoffi.html
  http://www.samadhiweb.com/blog/2016.03.17.demoffi.html

I intend to modify my blog posts to contribute to the booklet, sometime in this
month of June.

Pierce

Reply via email to