-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_chrcmp.c
More file actions
23 lines (20 loc) · 1.05 KB
/
ft_chrcmp.c
File metadata and controls
23 lines (20 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_chrcmp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ewilliam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/09 14:22:43 by ewilliam #+# #+# */
/* Updated: 2016/12/09 17:04:59 by ewilliam ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_chrcmp(const char c1, const char c2)
{
unsigned char ch1;
unsigned char ch2;
ch1 = (unsigned char)c1;
ch2 = (unsigned char)c2;
return (ch1 - ch2);
}