-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_tolower.c
More file actions
26 lines (23 loc) · 1.29 KB
/
ft_tolower.c
File metadata and controls
26 lines (23 loc) · 1.29 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
25
26
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_tolower.c :+: :+: */
/* +:+ */
/* By: jaberkro <jaberkro@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2021/10/22 15:45:16 by jaberkro #+# #+# */
/* Updated: 2021/10/22 18:07:45 by jaberkro ######## odam.nl */
/* */
/* ************************************************************************** */
int ft_tolower(int c)
{
if (c >= 'A' && c <= 'Z')
c += 32;
return (c);
}
/* 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.
If the argument is an upper-case letter, the tolower() function returns the
corresponding lower-case letter if there is one; otherwise, the argument is
returned unchanged. */