diff --git a/convert/ft_atoi.c b/convert/ft_atoi.c index ba63e8d..6475e7c 100644 --- a/convert/ft_atoi.c +++ b/convert/ft_atoi.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/08 17:22:41 by rparodi #+# #+# */ -/* Updated: 2025/09/05 14:34:51 by rparodi ### ########.fr */ +/* Updated: 2025/09/05 16:08:14 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,12 +31,6 @@ static int ft_check_sign(const char *nptr, int *i) return (1); } -/** - * @brief Converts string to integer - * - * @param nptr the string that will be converted - * @return The integer on the string - */ int ft_atoi(const char *nptr) { int i; diff --git a/convert/ft_atoll.c b/convert/ft_atoll.c index bce4af4..43ba49a 100644 --- a/convert/ft_atoll.c +++ b/convert/ft_atoll.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/31 15:12:07 by rparodi #+# #+# */ -/* Updated: 2025/09/05 14:54:50 by rparodi ### ########.fr */ +/* Updated: 2025/09/05 16:08:14 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -33,12 +33,6 @@ static int ft_check_sign(const char *nptr, size_t *i) return (1); } -/** - * @brief Converts string to long long integer - * - * @param nptr the string that will be converted - * @return The long long int on the string - */ long long int ft_atoll(const char *nptr) { size_t i; diff --git a/convert/ft_itoa.c b/convert/ft_itoa.c index f25351a..e267dab 100644 --- a/convert/ft_itoa.c +++ b/convert/ft_itoa.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/09 13:56:30 by rparodi #+# #+# */ -/* Updated: 2025/09/01 16:30:01 by rparodi ### ########.fr */ +/* Updated: 2025/09/05 16:08:14 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,12 +26,6 @@ static size_t ft_check_sign(char *str, long *nb) return (0); } -/** - * @brief Converts integer to string - * - * @param n the integer that will be converted - * @return The string with this integer - */ char *ft_itoa(int n) { size_t i; diff --git a/includes/convert.h b/includes/convert.h index 2674ae8..f3dcd96 100644 --- a/includes/convert.h +++ b/includes/convert.h @@ -6,15 +6,35 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/31 14:57:24 by rparodi #+# #+# */ -/* Updated: 2025/09/01 17:55:58 by rparodi ### ########.fr */ +/* Updated: 2025/09/05 16:07:54 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CONVERT_H # define CONVERT_H +/** + * @brief Converts integer to string + * + * @param n the integer that will be converted + * @return The string with this integer + */ char *ft_itoa(int n); + +/** + * @brief Converts string to integer + * + * @param nptr the string that will be converted + * @return The integer on the string + */ int ft_atoi(const char *nptr); + +/** + * @brief Converts string to long long integer + * + * @param nptr the string that will be converted + * @return The long long int on the string + */ long long int ft_atoll(const char *nptr); #endif