gimme that
This commit is contained in:
1
printf.c
1
printf.c
@@ -21,6 +21,7 @@ int _printf(const char *format, ...)
|
|||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
buff_idx = fmt_idx = printed = 0; /*chain assignment*/
|
buff_idx = fmt_idx = printed = 0; /*chain assignment*/
|
||||||
|
_memset(buffer, 0);
|
||||||
while (*(format + fmt_idx))
|
while (*(format + fmt_idx))
|
||||||
{
|
{
|
||||||
if ((*(format + fmt_idx) == '%') && (*(format + fmt_idx + 1)))
|
if ((*(format + fmt_idx) == '%') && (*(format + fmt_idx + 1)))
|
||||||
|
|||||||
Reference in New Issue
Block a user