messed up order

This commit is contained in:
LinlyBoi
2023-08-21 13:24:56 +03:00
parent 7bb2aafbd6
commit 883e8b5b9a

View File

@@ -13,14 +13,14 @@ int _printf(const char *format, ...)
int buff_idx = 0;
int fmt_idx = 0;
unsigned int identifiers, BUFF_SIZE;
char *buffer, *next;
char c;
char *buffer, *next, c;
va_list args;
identifiers = _contains(format, '%');
va_start(args, format);
buffer = malloc(BUFF_SIZE);
identifiers = _contains(format, '%');
BUFF_SIZE = _strlen(format) - identifiers;
buffer = malloc(BUFF_SIZE);
if (!format) /* No string. No laundry */
return (0);