* xmlStrASPrintf: * @out: pointer to the resulting string * @maxSize: maximum size of the output buffer * @msg: printf format string * @...: arguments for format string * * See xmlStrVASPrintf. * * Returns 0 on success, 1 if the result was truncated or on other * errors, -1 if a memory allocation failed. */
| 724 | * errors, -1 if a memory allocation failed. |
| 725 | */ |
| 726 | int |
| 727 | xmlStrASPrintf(xmlChar **out, int maxSize, const char *msg, ...) { |
| 728 | va_list ap; |
| 729 | int ret; |
| 730 | |
| 731 | va_start(ap, msg); |
| 732 | ret = xmlStrVASPrintf(out, maxSize, msg, ap); |
| 733 | va_end(ap); |
| 734 | |
| 735 | return(ret); |
| 736 | } |
| 737 | |
| 738 | /************************************************************************ |
| 739 | * * |
nothing calls this directly
no test coverage detected