ft_isalnum

This commit is contained in:
Tanguy MAZE 2018-04-04 12:05:52 +02:00
parent 030af8d89e
commit 98dede4297
2 changed files with 21 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# By: tmaze <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/04 10:51:59 by tmaze #+# #+# #
# Updated: 2018/04/04 11:34:29 by tmaze ### ########.fr #
# Updated: 2018/04/04 11:53:57 by tmaze ### ########.fr #
# #
#******************************************************************************#
@ -17,7 +17,8 @@ CCSTD = -std=c99
NAME = libft.a
SRCS = ft_isalpha.c \
ft_isdigit.c
ft_isdigit.c \
ft_isalnum.c
OBJS = $(SRCS:.c=.o)
INCLS = -I.

18
ft_isalnum.c Normal file
View File

@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/04 11:51:53 by tmaze #+# #+# */
/* Updated: 2018/04/04 12:00:08 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int c)
{
return (ft_isalpha(c) || ft_isdigit(c));
}