dmlfw (Daniyal Machine Learning Framework)
|
Common string-related utility functions. More...
Go to the source code of this file.
Functions | |
int | dmlfw_strcmp_case_insensitive (const char *left, const char *right) |
Compares two strings ignoring case differences. | |
void | dmlfw_uint32_to_binary (uint32_t number, char *string) |
Converts a 32-bit unsigned integer to a binary string. | |
Common string-related utility functions.
This header provides essential string operations:
Functions use the centralized error API to report failures. Use dmlfw_error()
after calls to check status, and dmlfw_get_error_string()
plus dmlfw_get_debug_string()
for diagnostics.
int dmlfw_strcmp_case_insensitive | ( | const char * | left, |
const char * | right | ||
) |
Compares two strings ignoring case differences.
Performs a case-insensitive comparison of left
and right
.
left | [in] Left string (must not be NULL). |
right | [in] Right string (must not be NULL). |
void dmlfw_uint32_to_binary | ( | uint32_t | number, |
char * | string | ||
) |
Converts a 32-bit unsigned integer to a binary string.
Converts number
to a null-terminated string of '0' and '1' characters, representing the binary format from most significant bit to least.
number | [in] Number to convert. |
string | [out] Destination buffer to hold binary string. Must be at least 33 bytes in size (32 bits + null). |