contrib/mdocml/chars.c
int
mchars_num2uc(const char *p, size_t sz)
{
	int               i;

	if ((i = mandoc_strntou(p, sz, 16)) < 0)
		return('\0');
	/* FIXME: make sure we're not in a bogus range. */
	return(i > 0x80 && i <= 0x10FFFF ? i : '\0');
}
/*
 * Hex character string to Unicode codepoint.
 * If the character is illegal, returns '\0'.
 */
Hex character string to Unicode codepoint.
If the character is illegal, returns '\0'.
Hex character string to Unicode codepoint . If the character is illegal returns ' \ 0 ' .
int
mchars_num2uc(const char *p, size_t sz)
{
	int               i;
	if ((i = mandoc_strntou(p, sz, 16)) < 0)
		return('\0');
	return(i > 0x80 && i <= 0x10FFFF ? i : '\0');
}
int mchars_num2uc ( const char * p , size_t sz ) { int i ; if ( ( i = mandoc_strntou ( p , sz , 16 ) ) < 0 ) return ( ' \0 ' ) ; return ( i > 0x80 && i <= 0x10FFFF ? i : ' \0 ' ) ; }
Hex character string to Unicode codepoint.
Hex character string to Unicode codepoint .
/* FIXME: make sure we're not in a bogus range. */