ft_tolower
This commit is contained in:
parent
dad84d85db
commit
8ef94d1275
8
Makefile
8
Makefile
@ -6,7 +6,7 @@
|
||||
# By: tmaze <marvin@42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2018/04/04 10:51:59 by tmaze #+# #+# #
|
||||
# Updated: 2018/04/04 14:09:35 by tmaze ### ########.fr #
|
||||
# Updated: 2018/04/04 15:07:23 by tmaze ### ########.fr #
|
||||
# #
|
||||
#******************************************************************************#
|
||||
|
||||
@ -16,12 +16,14 @@ CCSTD = -std=c99
|
||||
|
||||
NAME = libft.a
|
||||
|
||||
SRCS = ft_isalpha.c \
|
||||
SRCS = \
|
||||
ft_isalpha.c \
|
||||
ft_isdigit.c \
|
||||
ft_isalnum.c \
|
||||
ft_isascii.c \
|
||||
ft_isprint.c \
|
||||
ft_toupper.c
|
||||
ft_toupper.c \
|
||||
ft_tolower.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
INCLS = -I.
|
||||
|
||||
|
18
ft_tolower.c
Normal file
18
ft_tolower.c
Normal file
@ -0,0 +1,18 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_tolower.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/04 14:24:13 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/04 14:24:34 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_tolower(int c)
|
||||
{
|
||||
return ((c >= 'A' && c <= 'Z') ? c + 32 : c);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user