1 #include <assert.h> 2 #include <string.h> 3 main(int argc,char ** argv)4 int main(int argc, char** argv) { 5 assert(argc == 3); 6 assert(0 == strcmp(argv[0], "foo")); 7 assert(0 == strcmp(argv[1], "-bar")); 8 assert(0 == strcmp(argv[2], "--baz=value")); 9 return 0; 10 } 11