int main(int argc, char** argv) { char *argument1, *argument2;
if (argc < 2) ...{exception}... argument1 = argv[1]; argument2 =
argv[2]; } Note: It is up to you to decide if the arguments
actually refer to valid filenames. Also, if the filenames contain
spaces, this example will not work - you would need to write code
to parse (or use library routines) and support quoted
filenames.