I'd recommend using typedef with your structs to simplify calling them.
(I honestly couldn't get the above to compile.)
Normally, you would need to use "strut ExpandedTime" everywhere, I would think.
The only way I know how to just use "ExpandedType" alone as a struct is to typedef it, as in:
typedef struct expanded_time_struct {
// your struct's data
} ExpandedTime;
So in your case, something like:
typedef struct ExpandedTime_struct
{
double et_usec;
double et_sec;
double et_min;
double et_hour;
} ExpandedTime;
ExpandedTime* localTime(struct timeval* tv, ExpandedTime* etime);
int main()
{
struct timeval tv;
ExpandedTime etime;
gettimeofday(&tv, NULL);
localTime(&tv, &etime);
}
ExpandedTime* localTime(struct timeval* tv, ExpandedTime* etime)
{
}