#include #include "segy.h" #include "larsemod.h" char buf[60244]; main() { struct segy *ps; struct LarseHead *ls; int n; int nrec; nrec=0; ps = (struct segy *)buf; ls = (struct LarseHead *)buf; while( (n=read(0,buf,60244)) > 0 ) { nrec++; if(n < 4000) continue; fprintf(stdout, "sp=%d sta=%d comp=%d sx=%.2f sy=%.2f gx=%.2f gy=%.2f \n", ps->sp, ls->fieldStakeNum, ls->component, (float)ls->utmSrcX, (float)ls->utmSrcY, (float)ls->utmRecX, (float)ls->utmRecY); } }