* @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. */
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected