debut ecriture process et ecriture erreurs
This commit is contained in:
@@ -54,7 +54,7 @@ conversions : cspdiuxX%
|
||||
conversions : nfge
|
||||
flags : l,ll,h,hh,#,', ,+
|
||||
|
||||
%[arg_nbr$][flags #,0,-, ,+,'][width *][.precision *][length hh,h,ll,l,L,j,t,z][specifier d,i,u,x,X,c,s,p,%,e,f,g,n,E,F,G,a,A,C,S,o]
|
||||
%[arg_nbr$][flags 0,-,#,', ,+][width *][.precision *][length hh,h,ll,l,L,j,t,z][specifier d,i,u,x,X,c,s,p,%,e,f,g,n,E,F,G,a,A,C,S,o]
|
||||
% [flags 0,- ][width *][.precision *] [specifier d,i,u,x,X,c,s,p,% ]
|
||||
% [flags #,', ,+] [length hh,h,ll,l ][specifier e,f,g,n ]
|
||||
|
||||
@@ -63,7 +63,7 @@ typedef struct s_prist
|
||||
int print_nbr;
|
||||
int arg_nbr;
|
||||
char specifier;
|
||||
char *flag;
|
||||
int flag; //['0','-','#',''',' ','+','*'] binary
|
||||
int width;
|
||||
int precision;
|
||||
char *arg;
|
||||
@@ -79,6 +79,8 @@ store
|
||||
{printf_nbr 4; arg_nbr 4; specifier; flag; width; precision},
|
||||
{printf_nbr 5; arg_nbr 3; specifier; flag; width; precision}}
|
||||
|
||||
check_more_error
|
||||
|
||||
sort_by_arg
|
||||
{{printf_nbr 2; arg_nbr 1; specifier; flag; width; precision},
|
||||
{printf_nbr 1; arg_nbr 2; specifier; flag; width; precision},
|
||||
@@ -87,6 +89,7 @@ sort_by_arg
|
||||
{printf_nbr 4; arg_nbr 4; specifier; flag; width; precision}}
|
||||
|
||||
add_str_to_print
|
||||
if flag == * >> rerun for next argument but same list element
|
||||
{{printf_nbr 2; arg_nbr 1; specifier; flag; width; precision; arg},
|
||||
{printf_nbr 1; arg_nbr 2; specifier; flag; width; precision; arg},
|
||||
{printf_nbr 3; arg_nbr 3; specifier; flag; width; precision; arg},
|
||||
|
||||
Reference in New Issue
Block a user