34 #define str_copyiter(STR,ITER) str_copyb(STR,(ITER)->startptr,(ITER)->len) 37 #define str_catiter(STR,ITER) str_catb(STR,(ITER)->startptr,(ITER)->len) 40 #define obuf_putiter(OBUF,ITER) obuf_write(OBUF,(ITER)->startptr,(ITER)->len) 43 #define striter_loop(ITER,STR,SEP) for(striter_start(ITER,STR,SEP);striter_valid(ITER);striter_advance(ITER)) unsigned start
Definition: striter.h:20
char * s
Definition: str.h:36
unsigned len
Definition: striter.h:24
int striter_valid(striter *)
Definition: iter_valid.c:5
const struct str * str
Definition: striter.h:18
char sep
Definition: striter.h:26
const char * startptr
Definition: striter.h:22
int striter_advance(striter *)
Definition: iter_advance.c:5
void striter_start(striter *iter, const struct str *s, char sep)
Definition: iter_start.c:5