From 5eefc13ef24936a1eca7a13089cadd5187c275cf Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 6 Jul 2011 15:36:53 +0000 Subject: Replace the keyword expansion code with a faster, more readable version which additionally also supports $Log$ and $Locker. Written by Joerg Sonnenberger and tweaked by me. ok ray --- usr.bin/rcs/buf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'usr.bin/rcs/buf.c') 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 * All rights reserved. @@ -187,6 +187,15 @@ buf_putc(BUF *b, int c) b->cb_len++; } +/* + * Append a string to the end of buffer . + */ +void +buf_puts(BUF *b, const char *str) +{ + buf_append(b, str, strlen(str)); +} + /* * Return u_char at buffer position . */ -- cgit v1.2.3