Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=yaxmenu.git;a=commitdiff;h=ac266ed34041cb2d74740b6e2b1e56f3e713fc4a

commit ac266ed34041cb2d74740b6e2b1e56f3e713fc4a
Author: James Buren <[email protected]>
Date:   Sat Dec 5 21:02:08 2009 -0600

utility.h
* initial draft

diff --git a/src/utility.h b/src/utility.h
new file mode 100644
index 0000000..8ba3d2b
--- /dev/null
+++ b/src/utility.h
@@ -0,0 +1,10 @@
+#ifndef _utility_header_
+#define _utility_header_
+#include "includes.h"
+
+#define eprintf(...)     fprintf(stderr,__VA_ARGS__)
+#define array_entries(A) (sizeof(*A)/sizeof(A))
+#define xsnprintf(A,...) snprintf((A),array_entries(A),__VA_ARGS__)
+
+void *xmalloc(size_t);
+#endif
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to