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.
 
 
 
 

14 lines
244 B

  1. #include <assert.h>
  2. #include "array.h"
  3. #include "byte.h"
  4. main() {
  5. static array x,y;
  6. array_cats(&x,"fnord");
  7. array_cats(&y,"foobar");
  8. array_cat(&x,&y);
  9. array_fail(&y);
  10. array_cat(&y,&x);
  11. assert(byte_equal(x.p,11,"fnordfoobar"));
  12. }