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