![]() |
tgrekov-fdf
HIVE fdf May 2024
|
Definition in file ft_strtrim.c.
#include "libft.h"Go to the source code of this file.
Functions | |
| char * | ft_strtrim (char const *s1, char const *set) |
Allocates and returns a copy of s1 with any successive characters found in string set removed from the start and end. | |
| char * ft_strtrim | ( | char const * | s1, |
| char const * | set | ||
| ) |
Allocates and returns a copy of s1 with any successive characters found in string set removed from the start and end.
| [in] | s1 | Null-terminated string to trim |
| [in] | set | Null-terminated string containing characters to trim off s1 |
| char* | Pointer to allocated trimmed string |
Definition at line 31 of file ft_strtrim.c.
References ft_strchr(), ft_strlcpy(), and ft_strlen().