Sponsored Content
Full Discussion: I need your help.
Operating Systems Solaris I need your help. Post 302233325 by matrixmadhan on Sunday 7th of September 2008 06:11:46 AM
Old 09-07-2008
Quote:
It can be done without reading the file if that is a requirement.
Interesting ! Smilie

How is that possible to know a pattern in a file without actually reading it ?

I think this is not possible.

Did you mean, hiding or encapsulating the reading interface ?
 
ARCHIVE_READ_NEW(3)					   BSD Library Functions Manual 				       ARCHIVE_READ_NEW(3)

NAME
archive_read_new -- functions for reading streaming archives LIBRARY
Streaming Archive Library (libarchive, -larchive) SYNOPSIS
#include <archive.h> struct archive * archive_read_new(void); DESCRIPTION
Allocates and initializes a struct archive object suitable for reading from an archive. NULL is returned on error. A complete description of the struct archive object can be found in the overview manual page for libarchive(3). SEE ALSO
tar(1), libarchive(3), archive_read_data(3), archive_read_filter(3), archive_read_format(3), archive_read_set_options(3), archive_util(3), tar(5) BSD
February 2, 2012 BSD
All times are GMT -4. The time now is 03:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy