2022-09-27 10:29:23 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* ft_tolower.c :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
2022-10-04 08:21:55 -04:00
|
|
|
/* Created: 2022/09/26 12:38:07 by cchauvet #+# #+# */
|
|
|
|
/* Updated: 2022/09/28 16:41:24 by cchauvet ### ########.fr */
|
2022-09-27 10:29:23 -04:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "libft.h"
|
|
|
|
|
2022-10-04 08:21:55 -04:00
|
|
|
int ft_tolower(int c)
|
2022-09-27 10:29:23 -04:00
|
|
|
{
|
2022-10-04 08:21:55 -04:00
|
|
|
return (c - ('A' - 'a') * (c >= 'A' && 'Z' >= c));
|
2022-09-27 10:29:23 -04:00
|
|
|
}
|