test-cat.c File Reference

A 'cat' analogue which uses the cfile library. More...

#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
#include <talloc.h>
#include "cfile.h"

Functions

void write_file (const char *name)
int main (int argc, char *argv[])

Variables

void * context = NULL
CFileout = NULL


Detailed Description

A 'cat' analogue which uses the cfile library.

test-cat is a 'cat' analogue which uses the cfile library. It's used as a partial test of the file reading routines provided by cfile. To test it, simply run 'test-cat $compressed_file | zdiff - $compressed_file' (or whatever your local compressed-file-reading-diff variant is). If the output is different, then obviously the cfile library is wrong!


Function Documentation

int main ( int  argc,
char *  argv[] 
)

void write_file ( const char *  name  ) 


Variable Documentation

void* context = NULL

CFile* out = NULL


Generated on Fri Jan 23 11:58:35 2009 for CFile by  doxygen 1.4.7