Function stdio_strrep
Defined in File string.h
Function Documentation
-
char *stdio_strrep(const char *original, const char *pattern, const char *replacement, char *new_str)
Replace a occurrences of one substring within another string with a new substring.
If new is not large enough to hold the new string formed by replacing all occurrences of pattern with replacement, undefined behavior will occur.
- Parameters:
original – The string to replacement stuff in.
pattern – The substring to replace.
replacement – The substring to replace occurrences of pattern with.
new_str – The updated string.
- Returns:
The updated string.