-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_tolower.c
More file actions
24 lines (21 loc) · 1.15 KB
/
ft_tolower.c
File metadata and controls
24 lines (21 loc) · 1.15 KB
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: fsanz-ex <fsanz-ex@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/26 14:50:43 by fsanz-ex #+# #+# */
/* Updated: 2023/02/14 15:43:27 by fsanz-ex ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*converts an upper-case letter to the corresponding lower-case letter. Returns
the corresponding lower-case letter if there is one; otherwise, the argument
is returned unchanged.*/
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
c = c + 32;
return (c);
}