42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_replace_char.c File Reference

The file containing the my_replace_char function. More...

#include "my.h"

Functions

void my_replace_char (char *str, char to_replace, char replace_by)
 Replace a char in a string by another char.
 

Detailed Description

The file containing the my_replace_char function.

Author
Nicolas TORO

Function Documentation

◆ my_replace_char()

void my_replace_char ( char * str,
char to_replace,
char replace_by )

Replace a char in a string by another char.

Parameters
strThe string to modify
to_replaceThe char to replace
replace_byThe char to replace by
Returns
void