#define americano 0 #define europeo 1 #define lmax 200 #define posin 18 #define estac posin #define linea 5+posin #define durac 26+posin #define hor 17+posin #define fech 11+posin #define tranf 7 +posin #define numero 35+posin #define ccost 0 #define proye 76+posin #define cuenta 0 #define pulsos 0 #define ruta 0 #define prinum 0 #define ring 0 #define antran 0 // anexo transferido #define fofech americano #define ampm 15 #define incomin 28 char durll[6] ; extern char rgua[]; void in_central() { rgua[0]='\0'; } void fi_central() { } void cadur(int vhor,int vdurac, char *buf) { char shora[3] ; int hori,horf,mini,minf,segi,segf ; shora[0] = buf[vhor+0] ; shora[1] = buf[vhor+1] ; shora[2] = '\0' ; hori = atoi(shora) ; shora[0] = buf[vhor+3] ; shora[1] = buf[vhor+4] ; shora[2] = '\0' ; mini = atoi(shora) ; shora[0] = buf[vhor+6] ; shora[1] = buf[vhor+7] ; shora[2] = '\0' ; segi = atoi(shora) ; shora[0] = buf[vdurac+0] ; shora[1] = buf[vdurac+1] ; shora[2] = '\0' ; horf = atoi(shora) ; shora[0] = buf[vdurac+3] ; shora[1] = buf[vdurac+4] ; shora[2] = '\0' ; minf = atoi(shora) ; shora[0] = buf[vdurac+6] ; shora[1] = buf[vdurac+7] ; shora[2] = '\0' ; segf = atoi(shora) ; if (segfvnumero && buf[vfech+2]=='/' && buf[vhor+2]==':' && buf[vhor+5]==':' ) { k=0; for (it=0;it <3;it++) { if isdigit(buf[vestac+it]) tel[k++] = buf[vestac+it] ; } tel[k++] = ' ' ; tel[k++] = buf[vlinea] ; tel[k++] = ' ' ; cadur(vhor, vdurac, buf) ; tel[k++] = durll[0] ; tel[k++] = durll[1] ; tel[k++] = ':' ; tel[k++] = durll[2] ; tel[k++] = durll[3] ; tel[k++] = ':' ; tel[k++] = durll[4] ; tel[k++] = durll[5] ; tel[k++]= ' ' ; tel[k++] = buf[vhor+0]; tel[k++] = buf[vhor+1]; tel[k++] = buf[vhor+2]; tel[k++] = buf[vhor+3]; tel[k++] = buf[vhor+4]; tel[k++] = ' '; if (vfofech==europeo) { tel[k++] = buf[vfech+3]; tel[k++] = buf[vfech+4]; tel[k++] = buf[vfech+2]; tel[k++] = buf[vfech+0]; tel[k++] = buf[vfech+1]; } else { tel[k++] = buf[vfech+0]; tel[k++] = buf[vfech+1]; tel[k++] = buf[vfech+2]; tel[k++] = buf[vfech+3]; tel[k++] = buf[vfech+4]; } tel[k++] = '/'; tel[k++] = buf[6]; tel[k++] = buf[7]; tel[k++] = ' '; if (buf[vtranf]=='O' || buf[vtranf]=='T') vtip ='O'; else vtip ='I'; tel[k++] = vtip; tel[k++] = ' '; for (it=0;isdigit(buf[vnumero+it]) && it