```{index} single: ffi_peek_cstr; Peta::FFI function ``` ```{index} single: Peta::FFI::ffi_peek_cstr; Perl function ``` # ffi_peek_cstr Read the NUL-terminated C string at address `$ptr`. ## Synopsis ```perl 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`, ...).