Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

bin2c.c File Reference

#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define NAME_MAX   255
#define OPT_FORCE_HEX   1
#define ERROR(s...)   { printf("error: " s); puts("\n"); exit(1); }
#define BUFSIZE   1024
#define CHARS_PER_LINE   8

Functions

void char2cchar (char *buf, char c)
void bin2c_table (int size, FILE *in, FILE *out)
void bin2c (char *name, int size, FILE *in, FILE *out, char *inname)
void bin2h (char *name, int size, FILE *out, char *outname)
void syntax (char *name)
int main (int argc, char *argv[])

Variables

int options = 0


Define Documentation

#define BUFSIZE   1024
 

Definition at line 51 of file bin2c.c.

Referenced by bin2c_table().

#define CHARS_PER_LINE   8
 

Definition at line 52 of file bin2c.c.

Referenced by bin2c_table().

#define ERROR s...   )     { printf("error: " s); puts("\n"); exit(1); }
 

Definition at line 34 of file bin2c.c.

Referenced by main().

#define NAME_MAX   255
 

Definition at line 27 of file bin2c.c.

Referenced by bin2h(), and main().

#define OPT_FORCE_HEX   1
 

Definition at line 30 of file bin2c.c.

Referenced by char2cchar().


Function Documentation

void bin2c char *  name,
int  size,
FILE *  in,
FILE *  out,
char *  inname
 

Definition at line 85 of file bin2c.c.

References bin2c_table(), and size.

Referenced by main().

void bin2c_table int  size,
FILE *  in,
FILE *  out
 

Definition at line 54 of file bin2c.c.

References buf, BUFSIZE, char2cchar(), CHARS_PER_LINE, and size.

Referenced by bin2c().

void bin2h char *  name,
int  size,
FILE *  out,
char *  outname
 

Definition at line 93 of file bin2c.c.

References NAME_MAX, and size.

Referenced by main().

void char2cchar char *  buf,
char  c
 

Definition at line 36 of file bin2c.c.

References buf, OPT_FORCE_HEX, and options.

Referenced by bin2c_table().

int main int  argc,
char *  argv[]
 

Definition at line 121 of file bin2c.c.

References bin2c(), bin2h(), ERROR, NAME_MAX, NULL, and syntax().

void syntax char *  name  ) 
 

Definition at line 115 of file bin2c.c.

Referenced by main(), re_set_syntax(), and regcomp().


Variable Documentation

int options = 0
 

Definition at line 32 of file bin2c.c.

Referenced by char2cchar(), cplus_demangle(), cplus_demangle_opname(), cplus_mangle_opname(), x86asm::encode(), Disassembler::hexd(), ht_vregex_search_form::init(), ht_evalstr_search_form::init(), ht_hexascii_search_form::init(), ht_xgroup::init(), ht_group::init(), ht_format_group::init(), x86dis::str(), javadis::str(), and sys_ipc_exec().


Generated on Fri May 7 21:15:46 2004 by doxygen 1.3.5