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.

11 lines
329 B

#include "stralloc.h"
#include "textcode.h"
int fmt_to_sa(unsigned long (*func)(char*,const char*,unsigned long),
stralloc* sa,const char* src,unsigned long len) {
unsigned long needed=func(0,src,len);
if (!stralloc_readyplus(sa,needed)) return 0;
return needed;