new strops_remove_at_pos_char_inplace

This commit is contained in:
2025-05-21 21:07:14 +02:00
parent d31bc73884
commit 61a398f402
2 changed files with 20 additions and 10 deletions

View File

@ -4,10 +4,8 @@
#include <stddef.h>
/*
ATTENTION! THIS LIBRARY CURRENTLY LEAKS MEMORY!
Functions that return char*, return a new heap-allocated string.
The user of this library is responsible for freeing the memory of the result.
No function modifies the input string. The input string is copied at the beginning of a function.
Only 7-Bit Ascii is supported.
*/
@ -23,6 +21,7 @@ int strops_is_uppercase(const char* string);
char* strops_insert_at_pos_string(const char* string, const char* string_to_insert, ull_t pos);
char* strops_remove_at_pos_char(const char* string, ull_t pos);
void strops_remove_at_pos_char_inplace(char* string, ull_t pos);
char* strops_trim_right_whitespace(const char* string);
char* strops_trim_left_whitespace(const char* string);