-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_tolower.c
More file actions
31 lines (28 loc) · 1.33 KB
/
ft_tolower.c
File metadata and controls
31 lines (28 loc) · 1.33 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
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccarnot <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/05 12:01:45 by ccarnot #+# #+# */
/* Updated: 2023/05/05 12:06:44 by ccarnot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*******************************************
* Function: tolower
* Library: <ctype.h>
* Description: converts uppercase characters to lowercase
* Memory allocations: None
* Crash values: None
* Return value:
* - converted lowercase character
* - or the input character if the conversion was not possible
*******************************************/
int ft_tolower(int c)
{
if (c > 64 && c < 91)
return (c + 32);
return (c);
}