diff options
| author | ame <[email protected]> | 2024-08-26 22:33:07 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-08-26 22:33:07 -0500 |
| commit | d0c7c5b0dd9d20bfc323dc10c67f9de12d58c343 (patch) | |
| tree | 893fe45044ce5869246328f82eca2e7b78f02dd6 /src/types/parray.c | |
| parent | fda120441cabfefc511786d7a6af40eec9f181fa (diff) | |
initial param matching
Diffstat (limited to 'src/types/parray.c')
| -rw-r--r-- | src/types/parray.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types/parray.c b/src/types/parray.c index a1109c5..b1e41a2 100644 --- a/src/types/parray.c +++ b/src/types/parray.c @@ -31,6 +31,13 @@ parray_t* parray_init(){ return awa;
}
+parray_t* parray_initl(int len){
+ parray_t* awa = malloc(sizeof * awa);
+ awa->P = malloc(sizeof * awa->P * len);
+ awa->len = len;
+ return awa;
+}
+
/**
* @brief sets value at key to value, adds a new index if new
*
|
