-
Notifications
You must be signed in to change notification settings - Fork 7
/
test04.c
17 lines (15 loc) · 906 Bytes
/
test04.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>
char *ft_convert_base(char *nbr, char *base_from, char *base_to);
int main()
{
printf("Result: <%s>\n", ft_convert_base(" -+--andre", "andre", "0123456789"));
printf("Result: <%s>\n", ft_convert_base(" -0001233", "012345", "01234"));
printf("Result: <%s>\n", ft_convert_base(" -+-0", "0123456789ABCDEF", "0123456789"));
printf("Result: <%s>\n", ft_convert_base(" -+-ane", "andre0123433", "0123456789abcdef"));
printf("Result: <%s>\n", ft_convert_base(" -+-ane", "andre", "0123456789abcdef"));
printf("Result: <%s>\n", ft_convert_base(" -+-----1235513", "012345678", "0123456789"));
printf("Result: <%s>\n", ft_convert_base(" -+-ane", "andre", "0123456789abcdef"));
printf("Result: <%s>\n", ft_convert_base(" -+hahahaha", "012345ha", "lofi"));
printf("Result: <%s>\n", ft_convert_base(" -+---1010000100111110", "01", "0123456789"));
}