http://qs321.pair.com?node_id=1168052


in reply to Re^6: Passing integer pointer in XS? (simpler)
in thread Passing integer pointer in XS?

Check PP(pp_sysread), it does pretty much the same. (Utf8 blah-blah is probably not relevant here.)