#include <stdio.h> #include <string.h> int main (int argc,char * argv[]) { int i; for(i = 0 ; i<=argc ; ++i) if((strcmp(argv[i],"-p"))==0); return 0; }