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

commit a03ae362d0baad0754cfbe81330c5a78464ccf65
Author: James Buren <[email protected]>
Date:   Mon Sep 21 12:15:32 2009 -0500

utility.c
* initial draft

diff --git a/src/utility.c b/src/utility.c
new file mode 100644
index 0000000..50475a9
--- /dev/null
+++ b/src/utility.c
@@ -0,0 +1,25 @@
+//[of]:includes
+#include <stdio.h>
+#include <stdarg.h>
+#include <iso646.h>
+#include <assert.h>
+#include "utility.h"
+//[cf]
+//[of]:functions
+//[of]:eprintf
+int eprintf(const char *fmt,...) {
+  va_list args;
+  int rv;
+
+  assert((fmt != NULL));
+
+  va_start(args,fmt);
+
+  rv = vfprintf(stderr,fmt,args);
+
+  va_end(args);
+
+  return rv;
+}
+//[cf]
+//[cf]
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to