Introduce {v,}asprintf for windows
We have now again two functions called h_platform_vasprintf and h_platform_asprintf. On windows they are implemented in terms of vsnprint and the like. On BSD/GNU libraries we use the supplied vasprintf and asprintf.
This commit is contained in:
parent
124b4c381b
commit
9557448ae6
5 changed files with 90 additions and 14 deletions
|
|
@ -8,8 +8,17 @@
|
|||
|
||||
#include "compiler_specifics.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* String Formatting */
|
||||
|
||||
/** see GNU C asprintf */
|
||||
int h_platform_asprintf(char **strp, const char *fmt, ...);
|
||||
|
||||
/** see GNU C vasprintf */
|
||||
int h_platform_vasprintf(char **strp, const char *fmt, va_list arg);
|
||||
|
||||
/* Error Reporting */
|
||||
|
||||
/* BSD errx function, seen in err.h */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue