diff options
Diffstat (limited to 'lib/dynarr/dagrow.c')
-rw-r--r-- | lib/dynarr/dagrow.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/dynarr/dagrow.c b/lib/dynarr/dagrow.c deleted file mode 100644 index 8273efe..0000000 --- a/lib/dynarr/dagrow.c +++ /dev/null @@ -1,17 +0,0 @@ -#include <stdint.h> - -#include "dynarr.h" - -void * -(dagrow)(void *da, size_t n, size_t elemsz, size_t align) -{ - dynarr(uint8_t) cpy; - memcpy(&cpy, da, sizeof(cpy)); - - if (n > cpy.cap) { - cpy.buf = cpy.alloc(cpy.ctx, cpy.buf, cpy.cap, n, elemsz, align); - cpy.cap = n; - } - - return memcpy(da, &cpy, sizeof(cpy)); -} |