exit sur la sortie d'erreure et parsing des variables $ mieux
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
# By: tomoron <marvin@42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2023/07/28 00:35:01 by tomoron #+# #+# #
|
||||
# Updated: 2024/02/05 01:10:13 by tomoron ### ########.fr #
|
||||
# Updated: 2024/02/11 17:41:50 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -44,6 +44,7 @@ SRCS = ft_atoi.c\
|
||||
ft_strcmp.c\
|
||||
ft_strnstr.c\
|
||||
ft_strrchr.c\
|
||||
ft_strisnbr.c\
|
||||
ft_strtrim.c\
|
||||
ft_substr.c\
|
||||
ft_tolower.c\
|
||||
|
0
libft/ft_isspace.c
Normal file → Executable file
0
libft/ft_isspace.c
Normal file → Executable file
24
libft/ft_strisnbr.c
Executable file
24
libft/ft_strisnbr.c
Executable file
@ -0,0 +1,24 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_strisnbr.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/11 17:14:58 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/12 03:21:56 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
int ft_strisnbr(char *str)
|
||||
{
|
||||
if(!str)
|
||||
return(0);
|
||||
while(*str)
|
||||
{
|
||||
if(*str < '0' || *str > '9')
|
||||
return(0);
|
||||
str++;
|
||||
}
|
||||
return(1);
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/10/30 16:55:48 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/08 18:44:22 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/02/11 17:41:32 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -67,6 +67,7 @@ t_list *ft_lstnew(void *content);
|
||||
int ft_atoi(const char *str);
|
||||
t_list *ft_lstlast(t_list *lst);
|
||||
int ft_lstsize(t_list *lst);
|
||||
int ft_strisnbr(char *str);
|
||||
void ft_reset_color(void);
|
||||
int ft_isspace(char c);
|
||||
int ft_isalnum(int c);
|
||||
|
Reference in New Issue
Block a user