docs: Adding the char/ and convert/ documentation folder

This commit is contained in:
Raphael 2024-10-31 14:51:47 +01:00
parent a5fe7484a1
commit 5a68f60c5d
11 changed files with 120 additions and 9 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/08 17:22:41 by rparodi #+# #+# */
/* Updated: 2023/11/13 12:20:14 by rparodi ### ########.fr */
/* Updated: 2024/10/31 13:02:58 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -33,6 +33,12 @@ 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;

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/09 13:56:30 by rparodi #+# #+# */
/* Updated: 2023/11/13 19:50:31 by rparodi ### ########.fr */
/* Updated: 2024/10/31 13:02:55 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -25,6 +25,12 @@ 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;