libmytar

A simple library to create some tar files

Download as .zip Download as .tar.gz View on GitHub

Introduction

This is a very simple library to write some tar file.

I wrote this library to store some image flow from a webcam 10 year ago.

It can interest some people.

Interface

The interface is only four funtions:

libmytar_newArchive

This function create a new archive file. The file has the name archiveName. The function will populate the structure tar_struct. The argument mode was for futur usage to read the archive. It should be set to WRITE.

libmytar_closeArchive

Close the archive.

libmytar_newFile

Create a new file in the archive with the name name.

libmytar_addData

Add data to the last added file. the size is the size of the object and the ptr is a pointer on it.

Compilation and installation

This library use autotool. To compile it you have to do the following steps:

See the INSTALL file for more details.