As my name implies, I just started learning how to program in C.
I have a homework assignment that requires me to use the function loadJPG
to decompress an image. I've never encounter this function before, so I have no idea how it works, or even how to call it. My instructor never explain it in class either.
The function has the prototype:
int loadJPG(const char* input_file_name,
const char * output_file_name);
So, I'm suppose to supply it with an input file name and a output file name, something that I'm totally unfamiliar with...
How are we suppose to use a file name as an argument and expect it to give us another file of some sort?
It'd be great if anyone can explain that function to me, and more importantly, teach me how to use it.