|
C-Menu 0.2.9
A User Interface Toolkit
|
Simple String Object Library. More...
Functions | |
| String | to_string (const char *s) |
| String functions provide a simple string library to facilitate string manipulation in C, allowing developers to easily create, copy, concatenate, and free strings without having to manage memory manually. | |
| String | free_string (String string) |
| Free the dynamically allocated String. | |
| size_t | string_cpy (String *dest, const String *src) |
| Copy src String to dest String, allocating additional memory for dest String if necessary. | |
| size_t | string_cat (String *dest, const String *src) |
| Concatenates src String to dest String, allocating additional memory for dest String if necessary. | |
| size_t | string_ncat (String *dest, const String *src, size_t n) |
| Concatenates up to n characters from src String to dest String, allocating additional memory for dest String if necessary. | |
| size_t | string_ncpy (String *dest, const String *src, size_t n) |
| copies up to n characters from src String to dest String, allocating additional memory for dest String if necessary | |
Simple String Object Library.
Free the dynamically allocated String.
| string | to free |
Definition at line 1415 of file futil.c.
Concatenates src String to dest String, allocating additional memory for dest String if necessary.
Concatenates up to n characters from src String to dest String, allocating additional memory for dest String if necessary.
| dest | - destination String struct |
| src | - source String struct |
| n | - maximum number of characters to concatenate |
Definition at line 1466 of file futil.c.
copies up to n characters from src String to dest String, allocating additional memory for dest String if necessary
| dest | - destination String struct |
| src | - source String struct |
| n | - maximum number of characters to copy |
Definition at line 1487 of file futil.c.
| String to_string | ( | const char * | s | ) |
String functions provide a simple string library to facilitate string manipulation in C, allowing developers to easily create, copy, concatenate, and free strings without having to manage memory manually.
Convert C string to String struct
| s | C string |