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

The file containing the my_add_chr function. More...

#include "my.h"

Functions

char * my_add_chr (char *str, char chr)
 Adds a char (chr) at the end of a string (str)
 

Detailed Description

The file containing the my_add_chr function.

Author
Nicolas TORO

Function Documentation

◆ my_add_chr()

char * my_add_chr ( char * str,
char chr )

Adds a char (chr) at the end of a string (str)

Note
The string must be allocated and have enough space
Parameters
strThe string to modify
chrThe char to add
Returns
char * The modified string
Author
Nicolas TORO