DFord425
October 20th, 2007, 03:50 AM
I am doing a programming assignment for one of my classes and i have to write a version of the touch command. I need some help with the utimbuf struct. I am trying to change the access and modification times. Here is my code
void update_file_info(char* filename, struct stat *info_p)
{
struct utimbuf time;
utime(filename, time);
}
The problem i have is that the compiler says
touch1.c:80: error: storage size of ‘time’ isn’t known
Any help is appreciated.
void update_file_info(char* filename, struct stat *info_p)
{
struct utimbuf time;
utime(filename, time);
}
The problem i have is that the compiler says
touch1.c:80: error: storage size of ‘time’ isn’t known
Any help is appreciated.