cchar#

Return the first character of $sv as a single-quoted C character literal.

Synopsis#

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.