Sample code to use StablePtr (IO ()).