diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-06 15:36:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-06 15:36:53 +0000 |
commit | 5eefc13ef24936a1eca7a13089cadd5187c275cf (patch) | |
tree | 6596e21da24f7f97e762f2cfe60993ca0a7738b0 /usr.bin/rcs/buf.c | |
parent | e3a67e680509895a71b8ada1baf56dcdc4f14015 (diff) |
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
Diffstat (limited to 'usr.bin/rcs/buf.c')
-rw-r--r-- | usr.bin/rcs/buf.c | 11 |
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 |