add xasprintf() for upcoming changes.

This commit is contained in:
okan
2012-11-28 14:32:44 +00:00
parent 2b9d921eda
commit 3e151f8c76
2 changed files with 19 additions and 0 deletions

View File

@@ -492,6 +492,9 @@ void u_spawn(char *);
void *xcalloc(size_t, size_t);
void *xmalloc(size_t);
char *xstrdup(const char *);
int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
/* Externs */
extern Display *X_Dpy;