fix copyright date, fix declaration noise
1 parent 1056303 commit f3e75c52ea57cfb182f0173ba33bebd05543acd0
@tundra tundra authored on 19 Jan 2020
Showing 1 changed file
View
25
tdump.c
/* 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 <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#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';
equiv[WIDTH]='\0';
}
 
/************************ Display Current Line No. **************************/
 
dl()
void dl()
 
{
 
tohex2((int) (line & 0xffL),&lineno[4]);
location which can hold at least a 2 element string.
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[];