Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char **argv){
- //Create a pointer to an array of pointers to first element in double array
- //There are numFiles pointers to double array each holding TF+1 doubles
- double **DataMatrix = calloc(numFiles*(TF+1),sizeof(DataMatrix));
- //Pass the pointer to the first element in double array i
- for(int i=0; i<numFiles; i++){
- //Process FILES
- processFile(argv[i+2],alpha,DataMatrix[i]);
- }
- free(DataMatrix);
- return 0;
- }
- void processFile(char *fn, double alpha, double *DataArray{
- for(int time=0; time<=TF; i++){
- DataMatrix[time] = 10.0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement