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

Function string_back

string/std_string.c:1357–1365  ·  view source on GitHub ↗

* @brief Returns a pointer to the last character in the String object. * * This function returns a pointer to the last character in the String object. If the String object is NULL or empty, * the function returns NULL. * * @param str The String object to access. Must not be NULL or empty. * @return A pointer to the last character in the string, or NULL if the string is NULL or empty. */

Source from the content-addressed store, hash-verified

1355 }
1356
1357 for (size_t index = 0; index < str->size; index++) {
1358 upper[index] = sstr_ascii_toupper(str->dataStr[index]);
1359 }
1360 upper[str->size] = '\0';
1361 STRING_LOG("[string_to_upper]: Successfully converted string to uppercase.\n");
1362 return upper;
1363 }
1364
1365 STRING_LOG("[string_to_upper]: Error - Input string is NULL.\n");
1366 return NULL;
1367}
1368

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected