开始设计

This commit is contained in:
2026-08-10 01:21:15 +08:00
commit e45398991f
228 changed files with 20827 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef INCLUDED_C_PTRARRAYBAG_H
#define INCLUDED_C_PTRARRAYBAG_H
#ifndef INCLUDED_C_BASE_H
#include <c_Base.h>
#endif /*INCLUDED_C_BASE_H*/
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
typedef struct {
void** array;
c_size_t capacity;
c_size_t size;
}c_PtrArrayBag_t;
c_err_t c_PtrArrayBag_Init(c_PtrArrayBag_t* self, c_size_t capacity);
void c_PtrArrayBag_Destroy(c_PtrArrayBag_t* self);
c_err_t c_PtrArrayBag_Add(c_PtrArrayBag_t* self, void* item);
void* c_PtrArrayBag_Get(c_PtrArrayBag_t* self, c_size_t index);
c_err_t c_PtrArrayBag_Remove(c_PtrArrayBag_t* self, c_size_t index);
#endif /*INCLUDED_C_PTRARRAYBAG_H*/