diff options
| author | Cabergs Charles <cacharle@e-r6-p7.s19.be> | 2019-07-10 06:41:44 +0200 |
|---|---|---|
| committer | Cabergs Charles <cacharle@e-r6-p7.s19.be> | 2019-07-10 06:41:44 +0200 |
| commit | e8ab18a2c724c0acfa1688a62bc2042471d68e39 (patch) | |
| tree | 9c8ea6e70b228ca843d6a15d78d032d215413c4a /c07/main.c | |
| parent | e6611aacad3bb4efc676ab71956d890f4c9c1313 (diff) | |
| download | piscine-e8ab18a2c724c0acfa1688a62bc2042471d68e39.tar.gz piscine-e8ab18a2c724c0acfa1688a62bc2042471d68e39.tar.bz2 piscine-e8ab18a2c724c0acfa1688a62bc2042471d68e39.zip | |
c12 start
Diffstat (limited to 'c07/main.c')
| -rw-r--r-- | c07/main.c | 30 |
1 files changed, 13 insertions, 17 deletions
@@ -1,15 +1,3 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* main.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2019/07/08 08:19:02 by cacharle #+# #+# */ -/* Updated: 2019/07/09 09:42:11 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -17,7 +5,7 @@ #include "ex01/ft_range.c" #include "ex02/ft_ultimate_range.c" #include "ex03/ft_strjoin.c" -/*#include "ex04/ft_strdup.c"*/ +#include "ex04/ft_convert_base.c" #include "ex05/ft_split.c" int main() @@ -59,10 +47,18 @@ int main() free(join); printf("\n---------------\n"); - char *str = "bon,je,suis,charles"; - char *charset = ","; - char **sstrs = ft_split(str, charset); - free(sstrs); + printf("%s\n", ft_convert_base("101010", "01", "0123456789")); + printf("%s\n", to_base(34, "10")); + + /*printf("\n---------------\n");*/ + /*char *str = "bon.je.suis,asdofoisafj.ladjsf";*/ + /*char *charset = "";*/ + /*char **sstrs = ft_split(str, charset);*/ + /*for (int i = 0; sstrs[i] != 0; i++)*/ + /*printf("%s\n", sstrs[i]);*/ + /*for (int i = 0; sstrs[i] != 0; i++)*/ + /*free(sstrs[i]);*/ + /*free(sstrs);*/ return 0; } |
