26 const void* element = self->
start;
30 String single = convert_element(element);
32 string_append(&result, &single);
37 string_pop_n(&result, NULL, 2);
bool array_is_empty(const array_t *self)
True if the array contains no element.
void * array_end(const array_t *self)
One-past-the-end pointer of the array.
Internal state of a dynamic array.
string_t array_to_string(const array_t *self, string_conversion_t convert_element)
Create a string from an array.
size_t array_offset(const array_t *self, size_t count)
The size in memory of count elements.
#define string_append_literal(Self, StringLiteral)
Copy the content of a C string to the end of this string.
#define string_from_literal(StringLiteral)
Allocates a string, copying the content from a C string.
array_t string_t
A string is an array of char.
#define String
Automatically free the allocated storage when going out of scope.
O2S array implementation.
void * start
Underlying storage.
Create strings from data structures.
string_t(* string_conversion_t)(const void *element)
Designate functions that create a string from the address of a value.