meditationatae

Just another WordPress.com site

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;

}

Advertisements

Written by meditationatae

February 9, 2017 at 5:52 pm

Posted in History

%d bloggers like this: