]> mj.ucw.cz Git - libucw.git/commitdiff
Added bputs0() -- put a null-terminated string.
authorMartin Mares <mj@ucw.cz>
Thu, 15 Feb 2001 19:04:57 +0000 (19:04 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 15 Feb 2001 19:04:57 +0000 (19:04 +0000)
lib/fastbuf.h

index 4e4461a6e1f4cb44a5f7f3de81841cce629126ef..01e7f60a28f05a154c3c7996b08f164c9a4013d4 100644 (file)
@@ -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)
 {