|
🧵 str
Painfully common string utilities for C
|
A string "slice", which is a pointer & length pair. More...
#include <str.h>
Data Fields | |
| char * | data |
| Pointer to the start of the string. | |
| size_t | len |
| The length of the string. | |
A string "slice", which is a pointer & length pair.
A str can be printed using the "%.*s" format specifier:
| size_t str::len |
The length of the string.
If the string starting at data is null-terminated, this length includes the null terminator.