[C-prog-lang-l] TAR header

Jan Pechanec jp at devnull.cz
Thu May 20 19:23:12 CEST 2021


On Thu, 20 May 2021, Илья Завидный wrote:

>Hello,
>
>In the tar header file there are such entries as uid, gid, magic, linkname,
>devmajor, etc.
>When creating an archive are we also supposed to write smth to those
>entries? If so then how would we get those entries (to be honest I am not
>sure what they are in the first place :D)?

Ilia,

the assignment does not ask you to create the archive, you only list 
and extract files from an existing archive created via GNU tar.

When extracting the files, just create them with fopen() and ignore 
those fields you mentioned above.

Jan

-- 
Jan Pechanec <jp (at) devnull (dot) cz>
http://www.devnull.cz


More information about the c-prog-lang-l mailing list