summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r--usr.bin/cvs/buf.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index be37ce36b69..8eeb11a4848 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.28 2006/01/02 08:11:56 xsa Exp $ */
+/* $OpenBSD: buf.c,v 1.29 2006/01/10 14:57:53 niallo Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -236,6 +236,18 @@ cvs_buf_putc(BUF *b, int c)
}
/*
+ * cvs_buf_getc()
+ *
+ * Return u_char at buffer position <pos>.
+ *
+ */
+u_char
+cvs_buf_getc(BUF *b, u_int pos)
+{
+ return (b->cb_cur[pos]);
+}
+
+/*
* cvs_buf_append()
*
* Append <len> bytes of data pointed to by <data> to the buffer <b>. If the