File: str_vec.h

package info (click to toggle)
wlsunset 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: ansic: 1,038; xml: 285; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef STR_VEC_H
#define STR_VEC_H

#include <stddef.h>

struct str_vec {
	char **data;
	size_t len;
};

void str_vec_init(struct str_vec *vec);
void str_vec_push(struct str_vec *vec, const char *new_str);
void str_vec_free(struct str_vec *vec);

#endif //STR_VEC_H