Commit 670d417e authored by Gabriel Genois's avatar Gabriel Genois

yass

parent dd6fe845
Pipeline #99 passed with stages
in 58 seconds
......@@ -6,7 +6,7 @@
/* By: ggenois <ggenois@student.le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/05/19 16:03:09 by ggenois #+# ## ## #+# */
/* Updated: 2018/11/04 19:27:02 by ggenois ### #+. /#+ ###.fr */
/* Updated: 2018/11/04 19:52:46 by ggenois ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
......@@ -186,8 +186,10 @@ int main(int argc, char **argv)
//i = ft_printf("%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S%S", L"Α α", L"Β β", L"Γ γ", L"Δ δ", L"Ε ε", L"Ζ ζ", L"Η η", L"Θ θ", L"Ι ι", L"Κ κ", L"Λ λ", L"Μ μ", L"Ν ν", L"Ξ ξ", L"Ο ο", L"Π π", L"Ρ ρ", L"Σ σ", L"Τ τ", L"Υ υ", L"Φ φ", L"Χ χ", L"Ψ ψ", L"Ω ω", L"");
//i = ft_printf("\n%D", 9223372036854775807);
//i = ft_printf("\n%D", 9583444433307);
i = ft_printf("% ", "test");
i = ft_printf("{%-15Z}", 123);
ft_putchar('\n');
//i = ft_printf("% h");
//ft_putchar('\n');
ft_putnbr(i);
}
ft_putchar('\n');
......
......@@ -6,7 +6,7 @@
/* By: ggenois <ggenois@student.le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/11/04 17:13:25 by ggenois #+# ## ## #+# */
/* Updated: 2018/11/04 19:28:03 by ggenois ### #+. /#+ ###.fr */
/* Updated: 2018/11/04 19:55:15 by ggenois ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
......@@ -21,7 +21,9 @@ int ftpf_notypes(const char **input, int *size, int *ipos)
int ilen;
int itlen;
int i;
int imode;
imode = 0;
i = (*ipos);
dt = ftpf_initcontainer();
itlen = 0;
......@@ -32,14 +34,30 @@ int ftpf_notypes(const char **input, int *size, int *ipos)
dt->input = ft_strsub((*input), (*ipos), ilen);
//ft_putstr(dt->input );
//ft_putstr(dt->input);
ftpf_flags(&dt, &itlen);
ftpf_flags_widecheck(&dt);
ftpf_width(&dt, NULL, &itlen);
if ((*input)[i] != '\0')
{
if (ftpf_iachar((*input)[i]) == 0)
{
(dt)->data = ft_lstnew(&(*input)[i], sizeof(char));
imode = 1;
}
}
//ftpf_tmp_printpfdata(&dt);
if(imode == 1)
(*ipos)++;
else
--dt->w;
--dt->w;
(*size) = (*size) + ftpf_write(&dt);
(*ipos) = (*ipos) + (ilen - 1);
return (0);
......
......@@ -6,7 +6,7 @@
/* By: ggenois <ggenois@student.le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/05/19 16:09:47 by ggenois #+# ## ## #+# */
/* Updated: 2018/11/04 18:29:28 by ggenois ### #+. /#+ ###.fr */
/* Updated: 2018/11/04 19:52:13 by ggenois ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
......
......@@ -6,7 +6,7 @@
/* By: ggenois <ggenois@student.le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/05/19 16:10:59 by ggenois #+# ## ## #+# */
/* Updated: 2018/11/04 19:04:41 by ggenois ### #+. /#+ ###.fr */
/* Updated: 2018/11/04 19:55:20 by ggenois ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
......@@ -60,7 +60,7 @@ int ftpf_write(t_pfdata **dt)
{
ftpf_write_w(wspace, ' ', dt);
}
tlen = tlen + (wspace > 0 ? wspace : 0);
return (tlen);
}
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment