source code of aitch eee exx dump02a dot c

#include <stdio.h>

int main(void)
{
int j;
int ch;
int done;
FILE *in;

done = 0;
j = 0;

in = fopen(“/home/david/graphs/golomb5/hexdumpdotc/abbyspeech01a.txt”, “r”);

while( done == 0)
{
ch = fgetc(in);

if(ch == EOF)
{
done = 1;
}

if(done == 0)
{
j = j+1;
printf(“%02x “, ch);
if(0 == (j%16))
{
printf(“\n”);
}
}
}

if( 0 < (j%16) )
{
printf(“\n”);
}

return 0;

}

Published
Categorized as History
meditationatae's avatar

By meditationatae

Canadian

Discover more from meditationatae

Subscribe now to keep reading and get access to the full archive.

Continue reading