Return the Unicode codepoint of a UTF-8 character.
@param s The sequence of bytes containing the character.
@param n A ponter to a size_t containing the maximum number of bytes
to inspect. On successful return, this will be updated to contain
the number of bytes consumed by the character.
@return The codepoint, or -1 if a decoding error occurs (errno will be set).
Return the Unicode codepoint of a UTF-8 character.
@param s The sequence of bytes containing the character. @param n A ponter to a size_t containing the maximum number of bytes to inspect. On successful return, this will be updated to contain the number of bytes consumed by the character. @return The codepoint, or -1 if a decoding error occurs (errno will be set).