fixed test_array.c, libkeke_array.c
This commit is contained in:
@@ -9,6 +9,13 @@
|
||||
#include "libkeke_utils.h"
|
||||
#include "libkeke_array.h"
|
||||
|
||||
typedef struct {
|
||||
size_t type_size;
|
||||
size_t len;
|
||||
size_t max_len;
|
||||
void *content;
|
||||
} KekeArray;
|
||||
|
||||
#define ARRAY_GET(array, i) ((array)->content + (array)->type_size * (i))
|
||||
|
||||
KekeArray *keke_array_alloc(size_t initial_len, size_t type_size) {
|
||||
|
||||
Reference in New Issue
Block a user