src/commands/simple/od.c File Reference

#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (long offset,(int argc, char *argv[], int k))
 _PROTOTYPE (void dumpfile,(void))
 _PROTOTYPE (void wdump,(short *words, int k, int radix))
 _PROTOTYPE (void bdump,(char bytes[16], int k, int c))
 _PROTOTYPE (void byte,(int val, int c))
 _PROTOTYPE (int getwords,(short **words))
 _PROTOTYPE (int same,(short *w1, int *w2))
 _PROTOTYPE (void outword,(int val, int radix))
 _PROTOTYPE (void outnum,(int num, int radix))
 _PROTOTYPE (void addrout,(long l))
 _PROTOTYPE (char hexit,(int k))
int main (int argc, argv)
long offset (int argc, argv, int k)
void dumpfile ()
void wdump (short *words, int k, int radix)
void bdump (bytes, int k, char c)
void byte (int val, char c)
int getwords (short **words)
int same (short *w1, int *w2)
void outword (int val, int radix)
void outnum (int num, int radix)
void addrout (long l)
void usage ()

Variables

int bflag
int cflag
int dflag
int oflag
int xflag
int hflag
int vflag
int linenr
int width
int state
int ever
int prevwds [8]
long off
char buf [512]
char buffer [BUFSIZ]
int next
int bytespresent


Function Documentation

_PROTOTYPE ( char  hexit,
(int k  
)

_PROTOTYPE ( void  addrout,
(long l)   
)

_PROTOTYPE ( void  outnum,
(int num, int radix)   
)

_PROTOTYPE ( void  outword,
(int val, int radix)   
)

_PROTOTYPE ( int  same,
(short *w1, int *w2)   
)

_PROTOTYPE ( int  getwords,
(short **words)   
)

_PROTOTYPE ( void  byte,
(int val, int c  
)

_PROTOTYPE ( void  bdump,
(char bytes[16], int k, int c  
)

_PROTOTYPE ( void  wdump,
(short *words, int k, int radix)   
)

_PROTOTYPE ( void  dumpfile,
(void)   
)

_PROTOTYPE ( long  offset,
(int argc, char *argv[], int k  
)

_PROTOTYPE ( int  main,
(int argc, char **argv)   
)

void addrout ( long  l  ) 

Definition at line 300 of file od.c.

void bdump ( bytes  ,
int  k,
char  c 
)

Definition at line 183 of file od.c.

void byte ( int  val,
char  c 
)

Definition at line 195 of file od.c.

void dumpfile (  ) 

Definition at line 136 of file od.c.

int getwords ( short **  words  ) 

Definition at line 225 of file od.c.

int main ( int argc  ,
argv   
)

Definition at line 32 of file od.c.

long offset ( int  argc,
argv  ,
int  k 
)

Definition at line 101 of file od.c.

void outnum ( int  num,
int  radix 
)

Definition at line 278 of file od.c.

void outword ( int  val,
int  radix 
)

Definition at line 256 of file od.c.

int same ( short *  w1,
int *  w2 
)

Definition at line 245 of file od.c.

void usage ( void   ) 

Definition at line 311 of file od.c.

void wdump ( short *  words,
int  k,
int  radix 
)

Definition at line 171 of file od.c.


Variable Documentation

int bflag

Definition at line 10 of file od.c.

char buf[512]

Definition at line 14 of file od.c.

char buffer[BUFSIZ]

Definition at line 14 of file od.c.

Definition at line 16 of file od.c.

int cflag

Definition at line 10 of file od.c.

int dflag

Definition at line 10 of file od.c.

int ever

Definition at line 11 of file od.c.

int hflag

Definition at line 10 of file od.c.

int linenr

Definition at line 11 of file od.c.

int next

Definition at line 15 of file od.c.

long off

Definition at line 13 of file od.c.

int oflag

Definition at line 10 of file od.c.

int prevwds[8]

Definition at line 12 of file od.c.

int state

Definition at line 11 of file od.c.

int vflag

Definition at line 10 of file od.c.

int width

Definition at line 11 of file od.c.

int xflag

Definition at line 10 of file od.c.


Generated on Tue Mar 9 04:36:42 2010 for Minix by  doxygen 1.5.8