First, let me point out that my grasp of pointers is thin at best! Will the following function do what I want?
If I was using ints I would know exactly what to do. After the function is over, I want tOld_Timestamp to point to the value that tNew_Timestamp used to point to, and I want tNew_Timestamp to point to whatever the result of the time() function call is.Code:void Get_Timestamp(time_t *tOld_Timestamp, time_t *tNew_Timestamp) {
*tOld_Timestamp = *tNew_Timestamp;
*tNew_Timestamp = time(NULL);
}