feat: add atoi function

This commit is contained in:
2025-10-11 22:39:55 +02:00
parent 327d115d41
commit e3b830202f
3 changed files with 42 additions and 1 deletions

10
libft.h
View File

@@ -2,7 +2,7 @@
#define LIBFT_A
#include <stddef.h>
# include <stdlib.h>
#include <stdlib.h>
/*
The ft_isalpha() function tests for
@@ -129,4 +129,12 @@ int ft_strncmp(const char *s1, const char *s2, size_t n);
*/
void *ft_memchr(const void *s, int c, size_t n);
// TODO
int ft_memcmp(const void *s1, const void *s2, size_t n);
// TODO
char *ft_strnstr(const char *haystack, const char *needle, size_t len);
int ft_atoi(const char *str);
#endif