SELKIELogger
1.0.0
|
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | string |
Simple string type. More... | |
struct | strarray |
Array of strings. More... | |
Functions | |
strarray * | sa_new (int entries) |
Allocate storage for a new array. More... | |
bool | sa_init (strarray *dst, const int entries) |
Initialise an already allocated array. More... | |
bool | sa_copy (strarray *dst, const strarray *src) |
Copy an array of strings from src to dst. More... | |
bool | sa_move (strarray *dst, strarray *src) |
Move strings from one array to another. More... | |
bool | sa_set_entry (strarray *array, const int index, string *str) |
Copy a string to a given position in the array. More... | |
bool | sa_create_entry (strarray *array, const int index, const size_t len, const char *src) |
Create an string in a given position from a character array and length. More... | |
void | sa_clear_entry (strarray *array, const int index) |
Clear an array entry. More... | |
void | sa_destroy (strarray *sa) |
Destroy array and contents. More... | |
string * | str_new (const size_t len, const char *ca) |
Create new string from character array. More... | |
bool | str_copy (string *dst, const string *src) |
Update an existing string by copying the contents from another. More... | |
string * | str_duplicate (const string *src) |
Allocate a new string containing the contents of another. More... | |
bool | str_update (string *str, const size_t len, const char *src) |
Update an existing string from a character array of given length. More... | |
void | str_destroy (string *str) |
Destroy a string and free its contents. More... | |
String and String Array types and handling functions
Definition in file strarray.h.