Functions | |
TRIO_PUBLIC_STRING trio_string_t * | trio_string_create (int initial_size) |
Create a new dynamic string. | |
TRIO_PUBLIC_STRING void | trio_string_destroy (trio_string_t *self) |
Deallocate the dynamic string and its contents. | |
TRIO_PUBLIC_STRING char * | trio_string_extract (trio_string_t *self) |
Extract the content. | |
TRIO_PUBLIC_STRING void | trio_xstring_set (trio_string_t *self, char *buffer) |
Set the content of the dynamic string. | |
TRIO_PUBLIC_STRING int | trio_string_append (trio_string_t *self, trio_string_t *other) |
Append the second string to the first. | |
TRIO_PUBLIC_STRING int | trio_string_contains (trio_string_t *self, trio_string_t *other) |
Search for the first occurrence of second parameter in the first. |
SYNOPSIS
cc ... -ltrio -lm #include <triostr.h>
DESCRIPTION
|
Append the second string to the first.
|
|
Search for the first occurrence of second parameter in the first.
|
|
Create a new dynamic string.
|
|
Deallocate the dynamic string and its contents.
|
|
Extract the content.
|
|
Set the content of the dynamic string.
buffer . An existing content will be deallocated first, if necessary.
|