You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
244 B
C

#include <assert.h>
#include "array.h"
#include "byte.h"
main() {
static array x,y;
array_cats(&x,"fnord");
array_cats(&y,"foobar");
array_cat(&x,&y);
array_fail(&y);
array_cat(&y,&x);
assert(byte_equal(x.p,11,"fnordfoobar"));
}