2048.c
2048.c copied to clipboard
implicitly declaring library function 'snprintf' with type...
gcc -o 2048 2048.c 2048.c:37:2: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] snprintf(color,length,"\033[38;5;%d;48;5;%dm",*foreground,*background); ^ 2048.c:37:2: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf' 1 error generated.