src/gldns/parseutil.c
int
gldns_parse_char(uint8_t *ch_p, const char** str_p)
{
	switch (**str_p) {

	case '\0':	return 0;

	case '\\':	*str_p += 1;
			return gldns_parse_escape(ch_p, str_p);

	default:	*ch_p = (uint8_t)*(*str_p)++;
			return 1;
	}
}
/** parse one character, with escape codes */
parse one character, with escape codes
parse one character with escape codes
int
gldns_parse_char(uint8_t *ch_p, const char** str_p)
{
	switch (**str_p) {
	case '\0':	return 0;
	case '\\':	*str_p += 1;
			return gldns_parse_escape(ch_p, str_p);
	default:	*ch_p = (uint8_t)*(*str_p)++;
			return 1;
	}
}
int gldns_parse_char ( uint8_t * ch_p , const char * * str_p ) { switch ( * * str_p ) { case ' \0 ' : return 0 ; case ' \\ ' : * str_p += 1 ; return gldns_parse_escape ( ch_p , str_p ) ; default : * ch_p = ( uint8_t ) * ( * str_p ) ++ ; return 1 ; } }
parse one character, with escape codes
parse one character with escape codes