21 lines
394 B
C
21 lines
394 B
C
/* SPDX-License-Identifier: BSD-2 */
|
|
|
|
#ifndef _char_dyn_arr
|
|
#define _char_dyn_arr
|
|
|
|
#define CHAR_DYN_ARR_OK 0
|
|
#define CHAR_DYN_ARR_FAILED -1
|
|
|
|
struct char_dyn_arr {
|
|
char **data;
|
|
int used;
|
|
int size;
|
|
};
|
|
|
|
extern struct char_dyn_arr *init_char_dyn_arr(int size);
|
|
extern int insert_char_dyn_arr(struct char_dyn_arr *a, char *e);
|
|
extern void free_char_dyn_arr(struct char_dyn_arr *a);
|
|
|
|
#endif
|
|
|