-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_charrevcap.c
20 lines (19 loc) · 1 KB
/
ft_charrevcap.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_charrevcap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erli <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/08 11:03:04 by erli #+# #+# */
/* Updated: 2018/11/08 11:04:00 by erli ### ########.fr */
/* */
/* ************************************************************************** */
char ft_charrevcap(char c)
{
if (c >= 'a' && c <= 'z')
return (c - 32);
if (c >= 'A' && c <= 'Z')
return (c + 32);
return (c);
}