-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_tolower.c
24 lines (21 loc) · 1.03 KB
/
ft_tolower.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: arcanava <arcanava@student.42barcel> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/10 19:10:23 by arcanava #+# #+# */
/* Updated: 2024/01/11 10:06:24 by arcanava ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_tolower(int c)
{
int result;
result = c + 32;
if (ft_isalpha(c) && ft_isalpha(result))
return (result);
else
return (c);
}