|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 310 (0x136)
Types: TextFile
Names: »hex2pe.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/psap/hex2pe.c«
# include <stdio.h>
main()
{
unsigned int i;
char buf[1];
register int result, count;
while ((result = scanf("%02x", &i)) != EOF){
count++;
buf[0]=(char) i;
if (result) write(1, buf, 1);
else
{
fprintf(stderr,"Conversion failed at byte number %d\n", count);
exit(1);
}
}
exit(0);
}