This commit is contained in:
LinlyBoi
2023-08-22 14:09:23 +03:00
parent 3174bc405f
commit 7294276338

View File

@@ -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))