i get command-line arguments
argv[3], but i need to pass it to function...
the sample input would be
a.out 7 100 lychrel.dat
int main(int argc, char*argv[])
{
int *array, randomNb, arraySize;
int i, judge, counter = 0, iteration = 0;
int total;
if (argc !=4)
{
fprintf (stderr, "This program requires following command");
fprintf (stderr, " line arguments\n");
fprintf (stderr, "'seed number', number of 'values' to be tested, ");
fprintf (stderr, "and a 'file name'.\n");
exit(-1);
}
char fileName[SIZE];
fileName = argv[3];
OpenData(&array, fileName, &arraySize);
Does line 17 and 18 coorect?