MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / string_cbegin

Function string_cbegin

string/std_string.c:1885–1892  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected