aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 4e0ef73f..aca70c40 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -155,6 +155,11 @@ void xprintf(char *format, ...)
if (ferror(stdout)) perror_exit("write");
}
+void xputs(char *s)
+{
+ if (EOF == puts(s)) perror_exit("write");
+}
+
void xputc(char c)
{
if (EOF == fputc(c, stdout)) perror_exit("write");