mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
352 B
13 lines
352 B
#include "str.h" |
|
#include "stralloc.h" |
|
#include "textcode.h" |
|
|
|
unsigned long scan_to_sa(unsigned long (*func)(const char*,char*,unsigned long*), |
|
const char* src,stralloc* sa) { |
|
unsigned long scanned; |
|
unsigned long r; |
|
if (!stralloc_readyplus(sa,str_len(src))) return 0; |
|
if ((r=func(src,sa->s+sa->len,&scanned))) |
|
sa->len+=r; |
|
return r; |
|
}
|
|
|