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.
12 lines
360 B
12 lines
360 B
#include "array.h" |
|
#include "textcode.h" |
|
|
|
void fmt_to_array(unsigned long (*func)(char*,const char*,unsigned long), |
|
array* a,const char* src,unsigned long len) { |
|
unsigned long needed=func(0,src,len); |
|
if (array_allocate(a,1,array_bytes(a)+needed-1)) { |
|
char* x=array_start(a)+array_bytes(a)-needed; |
|
func(x,src,len); |
|
} else |
|
array_fail(a); |
|
}
|
|
|