betty formatting
This commit is contained in:
2
printf.c
2
printf.c
@@ -15,7 +15,7 @@ int _printf(const char *format, ...)
|
||||
|
||||
va_start(args, format);
|
||||
buff_size = _strlen(format) - _contains(format, '%');
|
||||
buffer = (char *) malloc(_strlen(format) - _contains(format,'%')); /* sized of the non % instances only*/
|
||||
buffer = (char *) malloc(buff_size); /* sized of the non % instances only*/
|
||||
|
||||
if (!format && !buffer) /* No string. No laundry */
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user