ft_isalnum
This commit is contained in:
parent
030af8d89e
commit
98dede4297
5
Makefile
5
Makefile
@ -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
18
ft_isalnum.c
Normal 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));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user