I have to design a parser to convert Binary(HEX) File into number. I have to refer a format file for the same which is as follows:
(Sr No;field_name;position;length;datatype;flag;)
1;TimeStamp;0;4;HEXA;0;
2;TimeOffset;4;4;HEXA;1;
3;Data_Vol;8;4;HEXA;1;
................so on.........it has 60 fields, which represent 1 record.
Binary file:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Can you please help me coding this C program?