minishell
ft_tolower.c
Go to the documentation of this file.
1 /* ************************************************************************** */
2 /* */
3 /* ::: :::::::: */
4 /* ft_tolower.c :+: :+: :+: */
5 /* +:+ +:+ +:+ */
6 /* By: kfujita <kfujita@student.42tokyo.jp> +#+ +:+ +#+ */
7 /* +#+#+#+#+#+ +#+ */
8 /* Created: 2022/04/10 14:51:29 by kfujita #+# #+# */
9 /* Updated: 2022/04/26 00:30:04 by kfujita ### ########.fr */
10 /* */
11 /* ************************************************************************** */
12 
13 #include "ft_to.h"
14 #include "../ft_is/ft_is.h"
15 
16 int ft_tolower(int c)
17 {
18  if (ft_isupper(c))
19  return (c + ('a' - 'A'));
20  else
21  return (c);
22 }
int ft_isupper(int c)
Definition: ft_isupper.c:15
int ft_tolower(int c)
Definition: ft_tolower.c:16