diff --git a/tdump.c b/tdump.c index 805d388..7c85f61 100644 --- a/tdump.c +++ b/tdump.c @@ -1,6 +1,5 @@ /* DUMP.C - Dumps stdin To stdout In Hexadecimal Format - Copyright (C) 1986, T.A. Daneliuk - $Id: tdump.c,v 1.102 2007/01/02 22:56:02 tundra Exp $ + Copyright (C) 1986-2020, T.A. Daneliuk */ #include @@ -8,14 +7,23 @@ #include #define WIDTH 16 +/* Function declarations */ + +void dl(void); +int prnascii(char *equiv); +void tohex2(int x, char array[]); + + +/* Program globals */ + static char lineno[]="000000"; static unsigned long line=0; -main() +void main() { -int c,count; +int c,count; char array[4],equiv[WIDTH+1]; array[2]=' '; array[3]='\0'; @@ -47,7 +55,7 @@ /************************ Display Current Line No. **************************/ -dl() +void dl() { @@ -83,11 +91,10 @@ The low 8 bits of the integer are converted to an equivalent hexadecimal string which is stored in the array at subscripts 0 and 1. - - Last modified: 01/01/85 - Copyright (c) 1985 By T.A. Daneliuk */ +*/ -tohex2(i,array) +void tohex2(i,array) int i; char array[];