change_char()
#
Change a specific character in a string to another character.
Prototype
PUBLIC void change_char(
char *string,
char from,
char to
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The string to modify. |
|
|
The character to replace. |
|
|
The character to replace it with. |
Return Value
No return value. The function modifies the string in place.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples