Skip to content

Commit

Permalink
added fields and add option to archive function
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilmasri committed Jul 7, 2021
1 parent 8319d9f commit 9a49c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#define BLOCKSIZE 512
#define BYTOFFLEN 17
#define ENDBLK 183
#define HEADERBYTE 12

// The name, linkname, magic, uname, and gname are null-terminated
// All other fields are zero-filled octal numbers in ASCII
Expand Down
2 changes: 1 addition & 1 deletion include/my_tar.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int debug_header(char *path);
void *my_memset(void* str, int c, int len);

/* archive */
int archive(char **paths, size_t paths_len);
int archive(char **paths, size_t paths_len, option_t option);

/* options */
option_t check_option(char **format);
Expand Down

0 comments on commit 9a49c19

Please sign in to comment.