libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xasprintf.h
Go to the documentation of this file.
1 
2 #ifndef _GNU_SOURCE
3 
4 /* Multiplatform implementation of asprintf() from:
5  https://stackoverflow.com/questions/40159892/using-asprintf-on-windows
6  define _GNU_SOURCE to use the GNU asprintf extension instead this one.
7 */
8 
9 #pragma once
10 
11 #ifndef XASPRINTF_H_
12 #define XASPRINTF_H_
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
19 int _vscprintf_so(const char * format, va_list pargs);
20 
21 int vasprintf(char **strp, const char *fmt, va_list ap);
22 
23 int asprintf(char *strp[], const char *fmt, ...);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif //XASPRINTF_H_
30 
31 #endif // !_GNU_SOURCE
asprintf
int asprintf(char *strp[], const char *fmt,...)
Definition: xasprintf.c:36
_vscprintf_so
int _vscprintf_so(const char *format, va_list pargs)
Definition: xasprintf.c:16
vasprintf
int vasprintf(char **strp, const char *fmt, va_list ap)
Definition: xasprintf.c:25