-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_tolower.c
24 lines (21 loc) · 1.14 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: ssandova <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/16 18:11:06 by ssandova #+# #+# */
/* Updated: 2023/10/07 13:23:41 by ssandova ### ########.fr */
/* */
/* ************************************************************************** */
/*The tolower() function converts an upper-case letter to the corresponding
lower-case letter. The argument must be representable as an unsigned char or
the value of EOF.*/
#include "libft.h"
int ft_tolower(int c)
{
if (c >= 65 && c <= 90)
c = c + 32;
return (c);
}