/* Returns a pointer to the UTF8 character or NULL  */
const xmlChar* xmlUTF8Strpos(const xmlChar *utf, int pos)
/* Returns a pointer to the UTF8 character or NULL  */
const xmlChar* xmlUTF8Strpos(const xmlChar *utf, int pos)
{
        if ((ch=*utf++) == 0) return(NULL);
        if ( ch & 0x80 ) {
            if ( (ch & 0xc0) != 0xc0 )
                return(NULL);
            while ( (ch <<= 1) & 0x80 )
                if ( (*utf++ & 0xc0) != 0x80 )
                    return(NULL);
        }
    }
    return((xmlChar *)utf);
}