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

commit a262cd889763f6a35953b87801727ecab1b5e3de
Author: James Buren <[email protected]>
Date:   Sun Sep 20 17:39:52 2009 -0500

utility.c
* initial draft

diff --git a/src/utility.c b/src/utility.c
new file mode 100644
index 0000000..edee045
--- /dev/null
+++ b/src/utility.c
@@ -0,0 +1,20 @@
+//[of]:includes
+#include <stdlib.h>
+#include <assert.h>
+#include "utility.h"
+//[cf]
+//[of]:functions
+//[of]:xmalloc
+void *xmalloc(size_t num) {
+  void *ptr;
+
+  ptr = malloc(num);
+
+  if(!ptr) {
+    abort();
+  }
+
+  return ptr;
+}
+//[cf]
+//[cf]
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to