quik add-on =)

added secured ft_atoi function
still need to test for negative integers
This commit is contained in:
Tanguy MAZE
2019-02-27 13:14:53 +01:00
parent 2dfcdd29fd
commit 136cd5efb4
3 changed files with 54 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/08 00:12:36 by tmaze #+# #+# */
/* Updated: 2019/02/25 16:37:03 by tmaze ### ########.fr */
/* Updated: 2019/02/27 12:23:14 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -38,6 +38,9 @@
# define FT_COLOR_BG_CYAN "\x1b[46m"
# define FT_COLOR_BG_WHITE "\x1b[47m"
# define FT_INT_MAX 2147483647
# define FT_INT_MIN -2147483648
/*
** définition type t_list
*/
@@ -179,5 +182,6 @@ int ft_issign(char c);
int ft_iswhitespace(char c);
int ft_hasdigit(char *s);
char **ft_strsplitwhitespace(char *s);
int ft_atois(const char *str, int *nb);
#endif