modified some files like all files in stack utils and adding main.c and modified atoi and parssing

This commit is contained in:
Maoake
2025-12-08 20:44:03 +00:00
parent 8e8ca5cfdc
commit 30b306d2c2
10 changed files with 87 additions and 26 deletions

View File

@@ -6,10 +6,19 @@
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/08 18:28:17 by mteriier #+# #+# */
/* Updated: 2025/12/08 18:30:28 by mteriier ### ########.fr */
/* Updated: 2025/12/08 19:30:48 by mteriier ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
static int calcul_sign(char c)
{
if (c == '-')
return (-1);
return (1);
}
int ft_atoi(const char *nptr)
{
size_t i;