diff --git a/k&r/04-funcs-and-prog-struct/04-glob-stack.h b/k&r/04-funcs-and-prog-struct/04-glob-stack.h index e7c2be8..a9d7b71 100644 --- a/k&r/04-funcs-and-prog-struct/04-glob-stack.h +++ b/k&r/04-funcs-and-prog-struct/04-glob-stack.h @@ -1,7 +1,7 @@ #ifndef STACK_H #define STACK_H -#define printerr(format, ...) printf("error: " format, ##__VA_ARGS__) +#define printerr(format, ...) printf("error: " format "\n", ##__VA_ARGS__) #define EMPTY_STACK_ERR "stack empty" #define SHORT_STACK_ERR "not enough elements on stack"