24 lines
1002 B
C
24 lines
1002 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* :::::::: */
|
||
|
/* ft_dtoh.c :+: :+: :+: */
|
||
|
/* +:+ */
|
||
|
/* By: djonker <marvin@codam.nl> +#+ */
|
||
|
/* +#+ */
|
||
|
/* Created: 2021/01/31 02:22:34 by djonker #+# #+# */
|
||
|
/* Updated: 2023/02/07 00:38:47 by houtworm ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "../libft.h"
|
||
|
|
||
|
int ft_dtoh(char c)
|
||
|
{
|
||
|
int r;
|
||
|
int t;
|
||
|
|
||
|
t = ft_tolower(c);
|
||
|
r = t - 87;
|
||
|
return (r);
|
||
|
}
|