Code is too long to post so I will try to pose the problem in a simplified way.
I am dealing with epoch/unix time and read in these times from a file into a giant struct array. I assign these values as the data type double *time in the type definition.
I go through and find the max and min epoch time and assign it to variables max and min of type definition double.
Now, I am trying to pass this max and min into a function.
Upon passing in the function as an argument, when I print the values out to check that the right ones are passed in - they appear way different. I figure my way would be sufficient way as all I want to do is pass-by-value and not pass by the reference, since max and min are not memory locations or used as pointers and I do not care what happens to them inside the function. The function just uses their info and moves on.
Is this way not allowed?