X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Fbuffer.h;h=41a508fa5947ec19935041cb0eea3377239ae1da;hp=50e39041ade79a0fdb03c837fb32ac095df4ce0c;hb=05a3bbbe420e4afc76e0eea24ce32f859405dc4a;hpb=c8bf978fc5c4f6c793620a515fa2456a3fa9eb13 diff --git a/lib-lib/buffer.h b/lib-lib/buffer.h index 50e3904..41a508f 100644 --- a/lib-lib/buffer.h +++ b/lib-lib/buffer.h @@ -63,4 +63,8 @@ static inline void mutt_buffer_addch(BUFFER *b, char c) { mutt_buffer_add(b, &c, 1); } +static inline void mutt_buffer_reset(BUFFER *b) { + *(b->dptr = b->data) = '\0'; +} + #endif /* MUTT_LIB_LIB_BUFFER_H */