-
Notifications
You must be signed in to change notification settings - Fork 0
/
conversion_x.c
25 lines (23 loc) · 1.08 KB
/
conversion_x.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* conversion_x.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: araiva <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/27 21:18:02 by araiva #+# #+# */
/* Updated: 2022/03/27 21:18:05 by araiva ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "myutils.h"
char *conversion_x(unsigned int nb, int is_upper)
{
char *hex;
hex = my_ith(nb);
if (!hex)
return (NULL);
if (is_upper)
hex = my_strtoupper(hex);
return (hex);
}