summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rcs/buf.c')
-rw-r--r--usr.bin/rcs/buf.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/rcs/buf.c b/usr.bin/rcs/buf.c
index ee41a1fba67..22575358a9a 100644
--- a/usr.bin/rcs/buf.c
+++ b/usr.bin/rcs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.21 2011/04/20 19:34:16 nicm Exp $ */
+/* $OpenBSD: buf.c,v 1.22 2011/07/06 15:36:52 nicm Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -188,6 +188,15 @@ buf_putc(BUF *b, int c)
}
/*
+ * Append a string <s> to the end of buffer <b>.
+ */
+void
+buf_puts(BUF *b, const char *str)
+{
+ buf_append(b, str, strlen(str));
+}
+
+/*
* Return u_char at buffer position <pos>.
*/
u_char