About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

zzobfuscated.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <zzip/zzip.h>
#include <zzip/plugin.h>
Include dependency graph for zzobfuscated.c:

Go to the source code of this file.


#define O_BINARY   0
#define _MSC_VER_NULL
#define argn   2


static zzip_ssize_t our_read (int fd, void *buf, zzip_size_t len)
int main (int argc, char *argv[])


static zzip_plugin_io_handlers our_handlers = { }
static const char *const our_fileext [] = { ".dat", ".sav", 0 }
static const char usage []

Macro Definition Documentation


#define _MSC_VER_NULL

Definition at line 31 of file zzobfuscated.c.

◆ argn

#define argn   2


#define O_BINARY   0

Definition at line 18 of file zzobfuscated.c.

Function Documentation

◆ main()

◆ our_read()

static zzip_ssize_t our_read ( int  fd,
void buf,
zzip_size_t  len 

Definition at line 39 of file zzobfuscated.c.

References buf, bytes, i, len, and read.

Referenced by main().

Variable Documentation

◆ our_fileext

const char* const our_fileext[] = { ".dat", ".sav", 0 }

Definition at line 51 of file zzobfuscated.c.

Referenced by main().

◆ our_handlers

zzip_plugin_io_handlers our_handlers = { }

Definition at line 50 of file zzobfuscated.c.

Referenced by main().

◆ usage

const char usage[] ( void  )
Initial value:
" zzobfuscated <file> [in-zip filename]\n"
" - Demonstrates the use of installable file I/O handlers.\n"
" Copies <file> to \"obfuscated[.dat]\" while \"encrypting\" it by xor'ing\n"
" every byte with 0x55, installs file I/O handlers, and then uses the\n"
" zzip_open_ext_io function to read and print the file to stdout.\n"
" The file can be a normal file or an inflated part of a zip-archive,\n"
" to get 'README' from test.zip you may write \n"
" zzobfuscated test.zip README \n"

Definition at line 54 of file zzobfuscated.c.

Referenced by main().