mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-21 02:23:20 +00:00
move string_array from containers/ to lib/
This commit is contained in:
parent
01de701cf9
commit
1ac3fa1a15
13 changed files with 12 additions and 12 deletions
15
c/lib/string_array.h
Normal file
15
c/lib/string_array.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef STRING_ARRAY_H
|
||||
#define STRING_ARRAY_H
|
||||
|
||||
// Container class for keeping an array of strings, some of which may be null.
|
||||
typedef struct _string_array_t {
|
||||
int length;
|
||||
int strings_need_freeing;
|
||||
char** strings;
|
||||
} string_array_t;
|
||||
|
||||
string_array_t* string_array_alloc(int length);
|
||||
void string_array_free(string_array_t* parray);
|
||||
string_array_t* string_array_from_line(char* line, char ifs);
|
||||
|
||||
#endif // STRING_ARRAY_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue