fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float freq_rang_L=1;
  5. float freq_rang_H=2;
  6. char a[13]={0x00, 0x00, 0x94, 0x01, 0x00, 0x00, 0x75, 0x30, 0x00, 0x04, 0x93, 0xe0, 0x00};
  7.  
  8.  
  9.  
  10.  
  11. freq_rang_L = ntohl(*((float*)&a[4]));
  12. freq_rang_H = ntohl(*((float*)&a[8]));
  13. printf("%lf %lf\n", freq_rang_L, freq_rang_H);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
16777216.000000 16777216.000000