feat: added string struct in libft.h

This commit is contained in:
Zoëy Noort 2025-05-11 19:24:24 +02:00
parent 8c933384bb
commit a7b7cda496

View file

@ -3,6 +3,12 @@
# include <stdlib.h> # include <stdlib.h>
typedef struct s_string
{
size_t len;
char *data;
} t_string;
int ft_strcmp(const char *s1, const char *s2); int ft_strcmp(const char *s1, const char *s2);
size_t ft_strlen(const char *s); size_t ft_strlen(const char *s);
int ft_putstr(const char *s); int ft_putstr(const char *s);