tags:

views:

54

answers:

3

Hallo,

I'm looking for a really simple and easily hackable tar library for C or C++. Ideally it should have a permissive license (BSD/LGPL) and not have a ton of Unix/Windows OS dependencies, as I plan to use it from an embedded RTOS...

Any ideas?

+3  A: 

I haven't used it myself, but have you tried libtar? It is written in C and BSD licensed.

axel_c
Of course it's pretty good, but the Unix dependencies are relatively heavy. So I would like something more lightweight.
kotlinski
A: 

Take a look at the tar tool that comes on NetBSD.

It is actually a compound tool of pax, tar, and cpio, I believe you'll learn most from that.

http://people.freebsd.org/~kientzle/libarchive/

polemon
A: 

The tar format is pretty simple. Have you considered writing your own tar library?

JeremyP
Yes, I have, maybe that's the way I'll walk...
kotlinski
It was very easy :) Definitely less work than porting some library. Thanks!
kotlinski
That's good to know.
JeremyP