Help

I get an error on following code which should compare 2 arrays

struct file_change(*file_infos){

struct stat file_info_new[];
file_info_new[file_infos];

struct change_array[];

char pbuffer[2048];

for (files in file_infos){
if (file_infos.st_ino == file_info_new.st_ino){
if ((file_infos.st_mine == file_info_new.st_mine) &&
(file_infos.my_st_ctime == file_info_new.my_st_ctime)
break;
else {
change_array[file_info_new.st_ino];

}
return 0;

}
return change_array;
}


// Output file f
FILE *f;

f = fopen(FILECHANGE, "w");
if(f == 0) {
perror(FILECHANGE);
return 0;
}
Last edited on
First, please use code tags when posting code. See http://www.cplusplus.com/articles/jEywvCM9/


What error?
Topic archived. No new replies allowed.