change length or size specifiers in APIs from int to long

add array API (http://cr.yp.to/lib/array.html)
This commit is contained in:
leitner
2003-08-26 17:58:14 +00:00
parent d1df715971
commit 5226dd010d
68 changed files with 280 additions and 90 deletions

13
test/array.c Normal file
View File

@@ -0,0 +1,13 @@
#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"));
}