I seem to be having a problem with sprintf, the compiler gives me an error.
char* title = sprintf("%03d.jpg", counter);
The above gives me the following response in the compiler:
recover.c:39:39: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Werror,-Wint-conversion]
char* title = sprintf("%03d.jpg", counter);
Does sprintf not take the same formatting arguments as printf? Or am I doing something else wrong?