Я пытаюсь напечатать значения в переменной struct timeval
следующим образом:
int main()
{
struct timeval *cur;
do_gettimeofday(cur);
printf("Here is the time of day: %ld %ld", cur.tv_sec, cur.tv_usec);
return 0;
}
Я получаю эту ошибку:
request for member 'tv_sec' in something not a structure or union.
request for member 'tv_usec' in something not a structure or union.
Как я могу это исправить?