summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/buf.c')
-rw-r--r--usr.bin/make/buf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/make/buf.c b/usr.bin/make/buf.c
index 738f92a..b3748f0 100644
--- a/usr.bin/make/buf.c
+++ b/usr.bin/make/buf.c
@@ -204,6 +204,15 @@ Buf_Append(Buffer *bp, const char str[])
}
/**
+ * Append characters between str and end to Buffer object.
+ */
+void
+Buf_AppendRange(Buffer *bp, const char str[], const char *end)
+{
+ Buf_AddBytes(bp, end - str, str);
+}
+
+/**
* Clear the contents of the buffer.
*/
void
OpenPOWER on IntegriCloud