/* Returns the number of characters written to @buf or -1 if an error occurs.  */
int xmlStrVPrintf(xmlChar *buf, int len, const xmlChar *msg, va_list ap)
/* Returns the number of characters written to @buf or -1 if an error occurs.  */
int xmlStrVPrintf(xmlChar *buf, int len, const xmlChar *msg, va_list ap)
{
        return(-1);
    }
    ret = vsnprintf((char *) buf, len, (const char *) msg, ap);
    buf[len - 1] = 0;
    return(ret);
}