1

How do I call a function with a NULL parameter of type FPtr with the Idris FFI? I've looked through the library, and it looks like there's neither a null pointer nor a way to cast integers to pointers.

jch
  • 5,382
  • 22
  • 41

1 Answers1

1

It turns out that there is a constant null in Prelude.Strings (out of all places). This was indicated to me by MaxOw on the Idris bug tracker.

jch
  • 5,382
  • 22
  • 41