heres the typedef for sig:
if (fp = fopen(database,"a"))
as u can probably tell this is an assignment :P thats why i dont want u to gimme any code, simply a suggestion or clue. since i posted ive also tried making a function to pad the end of the 50 length char array with '\0' but that didnt work either for some reason.
char name; /*File or directory name*/
u_short mode; /*protection and file type*/
short user_id; /*User ID of owner*/
short group_id; /*Group ID of owner*/
off_t size; /*file size in bytes*/
char time_last_mod; /*modify time as a string*/
to read the record im doing jus the opposite with fread, reading the sizeof(sig) bytes from the database.