about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2012-11-28 14:32:44 +0000
committerokan <okan>2012-11-28 14:32:44 +0000
commit3e151f8c764a5f1116fae3bea87f3d4474dc686a (patch)
treea20cabba3a963cb2d272377b2a1ca2b2e9a801e2 /calmwm.h
parent2b9d921edaa665f896cf29bf6ba332c6ac11dd21 (diff)
downloadcwm-3e151f8c764a5f1116fae3bea87f3d4474dc686a.tar.gz
cwm-3e151f8c764a5f1116fae3bea87f3d4474dc686a.tar.xz
cwm-3e151f8c764a5f1116fae3bea87f3d4474dc686a.zip
add xasprintf() for upcoming changes.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/calmwm.h b/calmwm.h
index 5085807..1abcbef 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -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;