stdx_str_eq
Compare two NUL-terminated strings for equality.
X_HASHTABLE_API bool stdx_str_eq(
const void *a,
const void *b
);
Parameters
const void *a
- Pointer to the first string (const char*).
const void *b
- Pointer to the second string (const char*).
Returns
True if equal, false otherwise.
x_hashtable_clone_cstr
Clone a NUL-terminated C string into destination storage.
X_HASHTABLE_API void x_hashtable_clone_cstr(
void *dest,
const void *src
);
Parameters
void *dest
- Destination storage receiving the cloned string (implementation-defined: may store char*).
const void *src
- Source string pointer (const char*).
x_hashtable_compare_cstr
Compare two NUL-terminated C strings for hashtable key equality.
X_HASHTABLE_API bool x_hashtable_compare_cstr(
const void *a,
const void *b
);
Parameters
const void *a
- First string pointer (const char*).
const void *b
- Second string pointer (const char*).
Returns
True if equal, false otherwise.
x_hashtable_free_cstr
Free a cloned NUL-terminated C string previously allocated by x_hashtable_clone_cstr().
X_HASHTABLE_API void x_hashtable_free_cstr(void *a);
Parameters
void *a
- Pointer to the stored string (typically a char* or pointer slot containing it).