yes
This commit is contained in:
4
printf.c
4
printf.c
@@ -10,8 +10,7 @@
|
|||||||
**/
|
**/
|
||||||
int _printf(const char *format, ...)
|
int _printf(const char *format, ...)
|
||||||
{
|
{
|
||||||
int buff_idx;
|
int buff_idx, fmt_idx;
|
||||||
int fmt_idx;
|
|
||||||
unsigned int identifiers, BUFF_SIZE;
|
unsigned int identifiers, BUFF_SIZE;
|
||||||
char *buffer, *next, c;
|
char *buffer, *next, c;
|
||||||
va_list args;
|
va_list args;
|
||||||
@@ -24,6 +23,7 @@ int _printf(const char *format, ...)
|
|||||||
|
|
||||||
if (!format) /* No string. No laundry */
|
if (!format) /* No string. No laundry */
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
buff_idx = 0;
|
buff_idx = 0;
|
||||||
fmt_idx = 0;
|
fmt_idx = 0;
|
||||||
while (*(format + fmt_idx))
|
while (*(format + fmt_idx))
|
||||||
|
|||||||
Reference in New Issue
Block a user