Differences From Artifact [dcf7698e7b]:
- File src/asprintf.m — part of check-in [ce70e17b38] at 2012-01-05 00:56:18 on branch trunk — Update copyright. (user: js, size: 1133) [annotate] [blame] [check-ins using] [more...]
To Artifact [852b8ff01b]:
- File src/asprintf.m — part of check-in [c59b2274ef] at 2012-07-25 22:08:36 on branch trunk — Work around buggy %a in snprintf on MinGW32. (user: js, size: 1190) [annotate] [blame] [check-ins using]
| ︙ | |||
15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + |
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#ifdef __MINGW32__
# define vsnprintf _vsnprintf
#endif
int
vasprintf(char **cString, const char *format, va_list arguments)
{
int length;
if ((length = vsnprintf(NULL, 0, format, arguments)) < 0)
|
| ︙ |