ObjFW  Diff

Differences From Artifact [dcf7698e7b]:

To Artifact [852b8ff01b]:


15
16
17
18
19
20
21




22
23
24
25
26
27
28
 */

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>





int
vasprintf(char **cString, const char *format, va_list arguments)
{
	int length;

	if ((length = vsnprintf(NULL, 0, format, arguments)) < 0)







>
>
>
>







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)