mirror of
https://github.com/Tilo-K/tstd.git
synced 2026-03-05 19:33:01 +00:00
feat: add str trim
This commit is contained in:
@@ -72,4 +72,12 @@ void str_to_lower(char* str);
|
||||
*/
|
||||
char* str_concat(const char* str1, const char* str2);
|
||||
|
||||
/**
|
||||
* @brief Trim leading and trailing whitespace characters from a string.
|
||||
* @param str Null-terminated input string (must not be NULL).
|
||||
* @return A newly allocated string with leading and trailing whitespace removed.
|
||||
* The caller is responsible for freeing the allocated memory.
|
||||
*/
|
||||
char* str_trim(const char* str);
|
||||
|
||||
#endif //TSTD_STRING_H
|
||||
|
||||
Reference in New Issue
Block a user