amit_kumar8
2007-04-05 03:20:19 UTC
the code is ..
#include
int main (int argc, char *argv){
//Parameter check
if (argc < 2){
printf("Incorrect number of input parameters.\nUsage %s file", argv[0]);
return EXIT_SUCCESS;
}
return EXIT_SUCCESS;
}
if I do not give any parameter to this code I get the following output
[amitk@express subscription]$ ./sub_csv
Incorrect number of input parameters.
Segmentation fault
I do not get any segmentation fault in case I do give it a parameter.
some one please help me how to get rid of this segmentation fault.