-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
27 lines (24 loc) · 1.17 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
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bnidia <bnidia@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/11 07:05:04 by bnidia #+# #+# */
/* Updated: 2021/10/25 19:24:02 by bnidia ### ########.fr */
/* */
/* ************************************************************************** */
/* ft_tolower
** If the character passed as an argument is an uppercase, convert to lower
** Return Value
** If c is a uppercase letter, returns its lowercase equivalent.
** Otherwise, it returns c.
*/
#include "libft.h"
int ft_tolower(int c)
{
if (ft_isalpha(c))
return (c | ' ');
return (c);
}