libft
Loading...
Searching...
No Matches
ft_strtrim.c File Reference
#include "libft.h"

Go to the source code of this file.

Functions

char * ft_strtrim (char const *s1, char const *set)
 Trim start and end of a string.
 

Function Documentation

◆ ft_strtrim()

char * ft_strtrim ( char const *  s1,
char const *  set 
)

Trim start and end of a string.

Trims set of characters from start and end of a string.

Parameters
s1String
setSet of character to trim from the string
Returns
char* Trimmed string
Attention
Allocates memory

Definition at line 15 of file ft_strtrim.c.