meditationatae

Just another WordPress.com site

source code of aitch eee exx restore02a dot c

#include <stdio.h>

int main(void)
{
int hex;
unsigned char car;
int val;
int done;
FILE *in;

done = 0;

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

while( done == 0)
{

val = fscanf(in, “%x”, &hex);

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

if(done == 0)
{
car = (unsigned char) hex;
printf(“%c”, car);
}
}

return 0;

}

Advertisements

Written by meditationatae

February 10, 2017 at 2:11 am

Posted in History

%d bloggers like this: