libowfat/buffer/buffer_getnewline_sa.c
leitner 82b0bb6f39 extend API To read line/token to stralloc to allow clearing the
stralloc first.
  add stralloc_zero to clear a stralloc
2004-11-25 20:07:31 +00:00

8 lines
151 B
C

#include "stralloc.h"
#include "buffer.h"
int buffer_getnewline_sa(buffer* b,stralloc* sa) {
stralloc_zero(sa);
return buffer_getline_sa(b,sa);
}