Lines Matching refs:strs
80 struct strs { struct
95 int strs_init(struct strs **strs, size_t size); argument
96 void strs_destroy(struct strs **strs);
97 void strs_free_all(struct strs *strs);
98 int strs_add(struct strs *strs, char *s);
100 int strs_create_and_add(struct strs *strs, const char *fmt, int num, ...);
101 char *strs_remove_last(struct strs *strs);
102 int strs_add_at_index(struct strs *strs, char *s, size_t index);
103 char *strs_read_at_index(struct strs *strs, size_t index);
104 void strs_sort(struct strs *strs);
105 unsigned strs_num_items(const struct strs *strs);
106 size_t strs_len_items(const struct strs *strs);
107 char *strs_to_str(const struct strs *strs);
108 void strs_write_each(const struct strs *strs, FILE *out);
109 void strs_write_each_indented(const struct strs *strs, FILE *out, int indent);
111 int ebitmap_to_strs(const struct ebitmap *map, struct strs *strs, char **val_to_name);
114 int strs_stack_init(struct strs **stack);
115 void strs_stack_destroy(struct strs **stack);
116 int strs_stack_push(struct strs *stack, char *s);
117 char *strs_stack_pop(struct strs *stack);
118 int strs_stack_empty(const struct strs *stack);