ObjFW  Check-in [c59b2274ef]

Overview
Comment:Work around buggy %a in snprintf on MinGW32.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c59b2274eff85cd1a334e957ed95fce9ff61c3a8bb71668ca8912b86f5504671
User & Date: js on 2012-07-25 22:08:36
Other Links: manifest | tags
Context
2012-07-29
15:23
objfw-config: Always add -g to the flags. check-in: 0869b36536 user: js tags: trunk
2012-07-25
22:08
Work around buggy %a in snprintf on MinGW32. check-in: c59b2274ef user: js tags: trunk
2012-07-21
21:16
PLATFORMS.md: Add OpenBSD. check-in: 6be84017ef user: js tags: trunk
Changes

Modified src/asprintf.m from [dcf7698e7b] to [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)