#define americano 0 #define europeo 1 #define lmax 200 #define posin 18 #define ladat 132+posin //#define estac 13 #define estac 14 #define linea 8 #define durac 30 #define hor 24 #define fech 20 #define tranf 30 #define numero 59 #define ccost 0 #define proye 106 #define cuenta 40 #define pulsos 94 #define ruta 5 #define prinum 19 #define ring 0 #define antran 0 // anexo transferido #define fofech americano // formato de fecha #define incomin 4 #define anoa 6 #define l_ruta 3 #define l_esta 7 #define l_proy 8 #define l_line 3 #define l_nume 24 #define l_cuenta 10 #define l_pulsos 4 char durll[6] ; void cadur(int posk, int vfech, int vdurac, char *buf) { char shora[3] ; int mesi,mesf,diai,diaf,hori,horf,mini,minf,segi,segf ; shora[0] = buf[vfech+posk-3] ; shora[1] = buf[vfech+posk-2] ; shora[2] = '\0' ; mesi = atoi(shora) ; shora[0] = buf[vfech+posk-1] ; shora[1] = buf[vfech+posk-0] ; shora[2] = '\0' ; diai = atoi(shora) ; shora[0] = buf[vfech+posk+1] ; shora[1] = buf[vfech+posk+2] ; shora[2] = '\0' ; hori = atoi(shora) ; shora[0] = buf[vfech+posk+3] ; shora[1] = buf[vfech+posk+4] ; shora[2] = '\0' ; mini = atoi(shora) ; shora[0] = buf[vfech+posk+5] ; shora[1] = buf[vfech+posk+6] ; shora[2] = '\0' ; segi = atoi(shora) ; shora[0] = buf[vdurac+posk-3] ; shora[1] = buf[vdurac+posk-2] ; shora[2] = '\0' ; mesf = atoi(shora) ; shora[0] = buf[vdurac+posk-1] ; shora[1] = buf[vdurac+posk-0] ; shora[2] = '\0' ; diaf = atoi(shora) ; shora[0] = buf[vdurac+posk+1] ; shora[1] = buf[vdurac+posk+2] ; shora[2] = '\0' ; horf = atoi(shora) ; shora[0] = buf[vdurac+posk+3] ; shora[1] = buf[vdurac+posk+4] ; shora[2] = '\0' ; minf = atoi(shora) ; shora[0] = buf[vdurac+posk+5] ; shora[1] = buf[vdurac+posk+6] ; shora[2] = '\0' ; segf = atoi(shora) ; if (segfvnumero && buf[posin]==0x2 && buf[posk]=='K' ) { aux = buf[vestac+posk-3]; aux = buf[vestac+posk-2]; aux = buf[vestac+posk-1]; aux = buf[vestac+posk+1]; if ((buf[vestac+posk-3]!=' ' || buf[vestac+posk-2]!=' ' || buf[vestac+posk-1]!=' ') && buf[vestac+posk+2]==' ') { flag = '0'; rllam(flag,posk,buf,tel,vestac,vlinea,vdurac,vhor,vfech,vtranf,vnumero,vccost,vproye,vcuenta,vpulsos,vruta,vprinum,vring,vantran,vfofech); } else { flag = '1'; rllam(flag,posk,buf,tel,vestac,vlinea,vdurac,vhor,vfech,vtranf,vnumero,vccost,vproye,vcuenta,vpulsos,vruta,vprinum,vring,vantran,vfofech); flag = '2'; gua_rut(tel); rllam(flag,posk,buf,tel,vestac,vlinea+9,vdurac,vhor,vfech,vtranf,vnumero,vccost,vproye,vcuenta,vpulsos,vruta+9,vprinum,vring,vantran,vfofech); } } }