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:
8
array/array_reset.c
Normal file
8
array/array_reset.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdlib.h>
|
||||
#include "array.h"
|
||||
|
||||
void array_reset(array* x) {
|
||||
if (x->p) free(x->p);
|
||||
x->p=0;
|
||||
x->allocated=x->initialized=0;
|
||||
}
|
||||
Reference in New Issue
Block a user