summaryrefslogtreecommitdiff
path: root/lab03/vec.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-15 08:50:18 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-15 08:50:18 +0800
commit269cf920996f9a5a0cb6909fd442ce28f0805cc0 (patch)
tree096a5b887d9df10c31a08767b51185cb09b3dbc6 /lab03/vec.h
parent8821367defad946089e5161f29d6ad32e8a631bd (diff)
downloadRUCDSA-269cf920996f9a5a0cb6909fd442ce28f0805cc0.tar.gz
RUCDSA-269cf920996f9a5a0cb6909fd442ce28f0805cc0.tar.xz
update tests
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'lab03/vec.h')
-rw-r--r--lab03/vec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab03/vec.h b/lab03/vec.h
index b751b80..d62df76 100644
--- a/lab03/vec.h
+++ b/lab03/vec.h
@@ -24,12 +24,12 @@
* `data` points to storage for at most `capacity` elements. The first
* `size` positions contain valid elements.
*/
-struct vec {
+typedef struct vec {
void *data;
size_t size;
size_t capacity;
size_t elem_size;
-};
+} vec;
/**
* @brief Compares two elements.