docs(convert): moving the actual documentation on the header

- The documentation on the header allow u to see on the files where the
header is inclued
This commit is contained in:
Raphael 2025-09-05 16:29:16 +02:00
parent 63c1dea7a2
commit 52b85d2dc6
No known key found for this signature in database
4 changed files with 24 additions and 22 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */ /* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/08 17:22:41 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); 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 ft_atoi(const char *nptr)
{ {
int i; int i;

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */ /* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/31 15:12:07 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); 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) long long int ft_atoll(const char *nptr)
{ {
size_t i; size_t i;

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */ /* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/09 13:56:30 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); 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) char *ft_itoa(int n)
{ {
size_t i; size_t i;

View file

@ -6,15 +6,35 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */ /* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/31 14:57:24 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 #ifndef CONVERT_H
# define 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); 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); 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); long long int ft_atoll(const char *nptr);
#endif #endif