From bdaf9c7ed7ca3611e4d2c2262422517720deff95 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 15 Feb 2001 19:04:57 +0000 Subject: [PATCH] Added bputs0() -- put a null-terminated string. --- lib/fastbuf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/fastbuf.h b/lib/fastbuf.h index 4e4461a6..01e7f60a 100644 --- a/lib/fastbuf.h +++ b/lib/fastbuf.h @@ -301,6 +301,12 @@ bputs(struct fastbuf *f, byte *b) bwrite(f, b, strlen(b)); } +static inline void +bputs0(struct fastbuf *f, byte *b) +{ + bwrite(f, b, strlen(b)+1); +} + static inline void bputsn(struct fastbuf *f, byte *b) { -- 2.39.2