.. _program_listing_file_server_utils_resizable_array.h: Program Listing for File resizable_array.h ========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``server/utils/resizable_array.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef RESIZABLE_ARRAY_H_ #define RESIZABLE_ARRAY_H_ #include typedef struct { char *buff; // Pointer to the array of elements size_t nmemb; // Number of elements currently in the array size_t capacity; // Maximum number of elements the array can hold } resizable_array_t; bool sized_struct_ensure_capacity( resizable_array_t *arr, size_t requested, size_t objsize ); #endif /* !RESIZABLE_ARRAY_H_ */