write.h

 avatar
unknown
plain_text
a year ago
337 B
2
Indexable
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include "header.h"

#ifndef WH
#define WH

#define BLOCK_SIZE 512

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