UtilLib
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_tolower.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: hexplor <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/10 10:09:46 by hexplor #+# #+# */
|
||||
/* Updated: 2023/11/10 10:13:40 by hexplor ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_tolower(int c)
|
||||
{
|
||||
if (c >= 97 - 32 && c <= 122 - 32)
|
||||
return (c + 32);
|
||||
return (c);
|
||||
}
|
||||
Reference in New Issue
Block a user