refactored append and char test

This commit is contained in:
LinlyBoi
2023-08-21 14:28:36 +03:00
parent f316833e4c
commit 7fda3ce821
5 changed files with 35 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ int _printf(const char *format, ...)
break;
case 'c': /* add 1 byte and i++ */
c = (char) va_arg(args, int);
append(buffer, c);
buffer = append(buffer, c);
BUFF_SIZE += 1;
buff_idx += 1;
break;