libft normed
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/12/01 17:12:02 by adjoly #+# #+# */
|
/* Created: 2023/12/01 17:12:02 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/02/04 14:24:58 by adjoly ### ########.fr */
|
/* Updated: 2024/03/16 21:45:27 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -40,5 +40,3 @@ char *ft_strjoin_gnl(char *s1, char *s2)
|
|||||||
result[i] = '\0';
|
result[i] = '\0';
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
5
libft.h
5
libft.h
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/01 10:06:03 by adjoly #+# #+# */
|
/* Created: 2023/11/01 10:06:03 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/03/12 14:43:11 by adjoly ### ########.fr */
|
/* Updated: 2024/03/16 21:45:08 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -29,7 +29,8 @@ typedef struct s_list
|
|||||||
struct s_list *next;
|
struct s_list *next;
|
||||||
} t_list;
|
} t_list;
|
||||||
|
|
||||||
typedef enum s_boolean{
|
typedef enum s_boolean
|
||||||
|
{
|
||||||
ERROR = -1,
|
ERROR = -1,
|
||||||
FALSE,
|
FALSE,
|
||||||
TRUE,
|
TRUE,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/18 18:35:32 by adjoly #+# #+# */
|
/* Created: 2023/11/18 18:35:32 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/02/04 15:07:14 by adjoly ### ########.fr */
|
/* Updated: 2024/03/16 21:45:41 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -16,4 +16,3 @@ void ft_putstr(char *s)
|
|||||||
{
|
{
|
||||||
write(1, s, ft_strlen(s));
|
write(1, s, ft_strlen(s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/17 16:48:37 by adjoly #+# #+# */
|
/* Created: 2023/11/17 16:48:37 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/02/04 15:23:15 by adjoly ### ########.fr */
|
/* Updated: 2024/03/16 21:46:36 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -56,9 +56,9 @@ int ft_printconversion(char conversion, va_list args)
|
|||||||
else if (conversion == 'p')
|
else if (conversion == 'p')
|
||||||
count = ft_putaddr(va_arg(args, void *));
|
count = ft_putaddr(va_arg(args, void *));
|
||||||
else if (conversion == 'x')
|
else if (conversion == 'x')
|
||||||
count = ft_putnbrbase_pf(va_arg(args, unsigned long), "0123456789abcdef");
|
count = ft_pputnbrbase(va_arg(args, unsigned long), "0123456789abcdef");
|
||||||
else if (conversion == 'X')
|
else if (conversion == 'X')
|
||||||
count = ft_putnbrbase_pf(va_arg(args, unsigned long), "0123456789ABCDEF");
|
count = ft_pputnbrbase(va_arg(args, unsigned long), "0123456789ABCDEF");
|
||||||
return (count);
|
return (count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/17 16:50:36 by adjoly #+# #+# */
|
/* Created: 2023/11/17 16:50:36 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/02/04 15:23:39 by adjoly ### ########.fr */
|
/* Updated: 2024/03/16 21:47:28 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ int ft_putaddr(void *ptr);
|
|||||||
int ft_putstr_p(char *s);
|
int ft_putstr_p(char *s);
|
||||||
|
|
||||||
int ft_putnbrbase_p(unsigned long int n, char *base);
|
int ft_putnbrbase_p(unsigned long int n, char *base);
|
||||||
int ft_putnbrbase_pf(unsigned int n, char *base);
|
int ft_pputnbrbase(unsigned int n, char *base);
|
||||||
int ft_putchar_p(char c);
|
int ft_putchar_p(char c);
|
||||||
int ft_putnbr_p(int n);
|
int ft_putnbr_p(int n);
|
||||||
size_t ft_strlen(const char *s);
|
size_t ft_strlen(const char *s);
|
||||||
|
Reference in New Issue
Block a user