ffi_peek_cstr#
Read the NUL-terminated C string at address $ptr.
Synopsis#
my $str = Peta::FFI::peek_cstr($ptr);
What you get back#
The bytes at $ptr up to (excluding) the first NUL; undef when $ptr is 0/undef. This is the reader for o-typed returns that point at C strings (PQgetvalue, mysql_error, …).