Comparing a string against a fixed buffer it is about to be copied into. More...
#include <stdbool.h>#include <stddef.h>#include <string.h>Go to the source code of this file.
Functions | |
| static void | cstring_fit (char *dst, const char *src, size_t size) |
| Copy a string into a fixed buffer, keeping only what fits and always terminating it. | |
| static bool | cstring_fit_same (const char *current, const char *value, size_t size) |
Whether copying value into a buffer would leave it reading exactly as it does now. | |
Comparing a string against a fixed buffer it is about to be copied into.