write.h

mail@pastecode.io avatar
unknown
plain_text
2 months ago
386 B
0
Indexable
Never
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include "header.h"

#ifndef WH
#define WH

#define BLOCK_SIZE 512

void verify_header(struct header *curr_header);

void write_header(int tar_fd, struct header *curr_header);

void write_field(int fd, char *field, unsigned field_size);

void write_contents(int tar_fd, int file_fd, struct stat sb);

#endif
Leave a Comment