FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ununpack-ar.c File Reference

The universal unpacker - Code to unpack an AR file. More...

#include "ununpack.h"
#include "externs.h"
Include dependency graph for ununpack-ar.c:

Go to the source code of this file.

Functions

int ExtractAR (char *Source, char *Destination)
 Given an AR file, extract the contents to the directory. This uses the command ar. More...
 

Detailed Description

The universal unpacker - Code to unpack an AR file.

Definition in file ununpack-ar.c.

Function Documentation

◆ ExtractAR()

int ExtractAR ( char *  Source,
char *  Destination 
)

Given an AR file, extract the contents to the directory. This uses the command ar.

Parameters
SourcePathname of source file
DestinationUnpack destination
Returns
0 on success, non-zero on failure.
Note
This spawns multiple processes.
Things that are known to cause failures:
  • Absolute paths in ar files
  • Same file name listed twice in the archive

Definition at line 26 of file ununpack-ar.c.