Libft extra functions

This commit is contained in:
2025-11-16 20:26:45 +01:00
parent 625a922cc9
commit cbbade912d
13 changed files with 459 additions and 13 deletions

View File

@@ -3,10 +3,10 @@
/* ::: :::::::: */
/* libft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/22 20:56:18 by aortigos #+# #+# */
/* Updated: 2023/10/26 07:37:33 by aortigos ### ########.fr */
/* Updated: 2025/11/16 20:25:28 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -55,6 +55,11 @@ void ft_putendl_fd(char *s, int fd);
void ft_putnbr_fd(int n, int fd);
int ft_memcmp(const void *s1, const void *s2, size_t n);
void free2d(char **ptr);
void ft_memfree(void *ptr);
int ft_strcmp(const char *s1, const char *s2);
// Caracteres
int ft_isalpha(int c);
int ft_isdigit(int c);
@@ -63,10 +68,24 @@ int ft_isascii(int c);
int ft_isprint(int c);
int ft_tolower(int c);
int ft_toupper(int c);
int ft_issign(int c);
int ft_isspace(char c);
// Array
char **ft_arrayadd(char *str, char **array);
char **ft_arraydelete(int pos, char **array);
char **ft_arraydup(char **array);
int ft_arraylen(char **array);
// Otras funciones
int ft_strncmp(const char *s1, const char *s2, size_t n);
int ft_atoi(const char *str);
double ft_atof(char *str);
char *ft_sltoa(long long nl);
char *ft_ultoa(unsigned long long un);
char *ft_itoa_base(unsigned long long ul, int base);
int ft_iabs(int nb);
t_list *ft_lstnew(void *content);
void ft_lstadd_front(t_list **lst, t_list *new);