libowfat/buffer/buffer_get_new_token_sa_pred.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
183 B
C

#include "stralloc.h"
#include "buffer.h"
int buffer_get_new_token_sa_pred(buffer* b,stralloc* sa,sa_predicate p) {
stralloc_zero(sa);
return buffer_get_token_sa_pred(b,sa,p);
}