GCC Warning: implicit declaration of function ‘puts’ is invalid in C99 January 3, 2024 by Tarik You need to include stdio.h, i.e. #include <stdio.h> at the start to import the function definition.