Hi..I am confused with this double pointer stuff...could somebody explain please...
Well, I have this typedef structure:
typedef struct
{
int scan_number;
int num_returns;
float min_time;
float max_time;
Measurement *measurements; //another typedef Structure
} MeasurementFrame;
typedef MeasurementFrame** ScanList;
Now I have a function that has a parameter as (ScanList *S1)
for example:
function(ScanList *S1)
{
...
}
What does this really mean. See... MeasurementFrame is a structure, and then ScanList is a double pointer to Measurement Frame Rite???(not sure)...somebody told me when u have a double pointer, it's like a double matrix, but in this situation it's hard to imagine like that, so if somebody coudl explain to me, I really would appreciate it. Thank you in advance.
Sunny
Well, I have this typedef structure:
typedef struct
{
int scan_number;
int num_returns;
float min_time;
float max_time;
Measurement *measurements; //another typedef Structure
} MeasurementFrame;
typedef MeasurementFrame** ScanList;
Now I have a function that has a parameter as (ScanList *S1)
for example:
function(ScanList *S1)
{
...
}
What does this really mean. See... MeasurementFrame is a structure, and then ScanList is a double pointer to Measurement Frame Rite???(not sure)...somebody told me when u have a double pointer, it's like a double matrix, but in this situation it's hard to imagine like that, so if somebody coudl explain to me, I really would appreciate it. Thank you in advance.
Sunny