aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 4dc6e9c..abce04a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -32,3 +32,11 @@ write_data(void *buffer, size_t size, size_t nmemb, void *userp)
memcpy(userp,buffer,nmemb*size);
return 0;
}
+
+/* like puts() but writes to stderr */
+
+void
+eputs(const char *s)
+{
+ fprintf(stderr,"%s\n",s);
+}