```{index} single: cchar; B function ``` ```{index} single: B::cchar; Perl function ``` # cchar Return the first character of `$sv` as a single-quoted C character literal. ## Synopsis ```perl B::cchar("A"); # 'A' B::cchar("\n"); # '\n' ``` Non-printable bytes are escaped the same way as in `B::cstring`. Only the first byte is inspected.