/* hexdump.c reversible hexdump Copyright (c) 1996 by Andreas Leitgeb (AvL) Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. */ #include #include int ch[16],line=0; void outputbyte(int i,int max); /* if the isprint(c) function does not exist on your system (or for PC/MS-DOS machines) you can try to replace it by '(c>=32)' */ int main(int argc,char *argv[]) { int c,i,diff=1,noabbr=0,flush=0; char *infname=NULL,*outfname=NULL; /* Argument handling */ for (i=1 ; i