-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_conmcasei.c
More file actions
25 lines (23 loc) · 1.08 KB
/
ft_conmcasei.c
File metadata and controls
25 lines (23 loc) · 1.08 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_conmcasei.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anben <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/06/25 12:14:30 by anben #+# #+# */
/* Updated: 2019/06/25 12:21:40 by anben ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char ft_conmcasei(unsigned int n, char ch)
{
(void)n;
if (ch == 0)
return (0);
if (ch >= 'a' && ch <= 'z')
ch = ch - 32;
else if (ch >= 'A' && ch <= 'Z')
ch = ch + 32;
return (0);
}