4 #define ULONG unsigned int
5 #define UBYTE unsigned char
7 int main(
int argc,
char *argv[])
23 pFileIn = fopen(argv[1],
"rb");
26 pFileOut = fopen(argv[2],
"wb");
30 while (fread(&Byte,1,1,pFileIn) == 1)
36 fwrite(&Byte,1,1,pFileOut);
47 fwrite(&Byte,1,1,pFileOut);
70 Result |= (
ULONG)Byte << (8 * Bytes);
74 if (Result != 0xFFFFFFFF)
76 pData = (
float*)&Result;
79 sprintf(Buffer,
"%08.0f",*pData);
83 sprintf(Buffer,
"%.1f",*pData);
85 fwrite(Buffer,strlen(Buffer),1,pFileOut);
88 fwrite(
"\r\n",2,1,pFileOut);
93 fwrite(
"\t",1,1,pFileOut);
100 fwrite(
"******************************************************************************************\r\n",92,1,pFileOut);
118 printf(
"\r\nUsage cnvlog filein fileout\r\n\n");
unsigned int ULONG
Basic Type used to symbolise 32 bit unsigned values.
int main(int argc, char *argv[])
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.