hi there :-)
sorry to bother but im really stuck on an assignment and i need some help
ive gotta write a program in C and im really lost!! :-(
the assignment is...
write a program that will take as input a file containing a list of file names (fully qualified path names; one per line) and produce a database file consisting of file signature records.
the file signature record is stored in a struct of the following form (exactly):
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*/
For the modify time, use function ctime to convert to a human readable string.
someone please tell me what all of that meant!! :-(
any help would be great