-
Notifications
You must be signed in to change notification settings - Fork 12
/
ft_toupper.c
27 lines (25 loc) · 1.16 KB
/
ft_toupper.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_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <apuchill@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/26 15:27:59 by apuchill #+# #+# */
/* Updated: 2020/02/19 14:07:13 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: <ctype.h>
** SYNOPSIS: lower case to upper case letter conversion
**
** DESCRIPTION:
** The toupper() function converts a lower-case letter to the corresponding
** upper-case letter.
*/
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
return (c - ('a' - 'A'));
return (c);
}