From: Martin Mares Date: Thu, 15 Feb 2001 19:04:57 +0000 (+0000) Subject: Added bputs0() -- put a null-terminated string. X-Git-Tag: holmes-import~1556 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=bdaf9c7ed7ca3611e4d2c2262422517720deff95;p=libucw.git Added bputs0() -- put a null-terminated string. --- 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) {