* @brief This function returns a pointer to the first character of the string data. * If the input String is NULL or uninitialized, an error is logged, and the function returns NULL. * * @param str The String object for which to get the beginning pointer. Must not be NULL. * * @return A constant pointer to the first character in the string, or NULL on error. */
| 1883 | STRING_LOG("[string_pad_right]: Error - Failed to allocate memory."); |
| 1884 | return; |
| 1885 | } |
| 1886 | memset(str->dataStr + str->size, padChar, totalLength - str->size); |
| 1887 | str->dataStr[totalLength] = '\0'; |
| 1888 | str->size = totalLength; |
| 1889 | } |
| 1890 | |
| 1891 | |
| 1892 | /** |
| 1893 | * @brief Converts the content of a String object to its hexadecimal representation. |
| 1894 | * |
| 1895 | * This function converts each character in the given String object to its corresponding hexadecimal value and |
nothing calls this directly
no outgoing calls
no test coverage detected