Solved

Which libraries I need in ANSI C to read and write GNU Header for Tar files?

Posted on 2011-02-23
3
316 Views
Last Modified: 2012-05-11
I am creating a program capable of reading and writing TAR files with standard header in GNU format.

I have found that all the variables I need at http://www.gnu.org/software/automake/manual/tar/Standard.html.

Is there any header to be included that has the tar structure already defined?
0
Comment
Question by:cicloide
3 Comments
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 250 total points
ID: 34967814
libtar sounds like what you need :

        http://www.feep.net/libtar/
0
 
LVL 8

Accepted Solution

by:
ssnkumar earned 250 total points
ID: 34968458
The page you are referring to is from the source code of GNU tar.
So, you may have to download the source code complete and then compile.

If you building your own API's, then you can make use of:
#include <tar.h>
in your code and this has some macros which will be useful in your code.
0
 
LVL 1

Author Closing Comment

by:cicloide
ID: 35100200
They lead me to more information but the answered the question.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question