libowfat/array/array_cat.c

11 lines
206 B
C

#include "array.h"
#include "byte.h"
void array_cat(array* to,const array* const from) {
if (from->allocated<0) {
array_fail(to);
return;
}
return array_catb(to,from->p,from->initialized);
}