#define americano 0 #define europeo 1 #define lmax 200 #define posin 18 #define ladat 82+posin #define orden 0 #define estac 3+posin // llamadas entrantes #define linea 11+posin #define durac 29+posin #define hor 23+posin #define fech 14+posin #define tranf 7+posin #define numero 50+posin #define ccost 0 //#define proye 113+posin #define proye 96+posin #define cuenta 96+posin #define pulsos 38+posin #define ruta 0 #define prinum 0 #define ring 79+posin #define antran 0 // anexo transferido (pendiente) #define fofech europeo // formato de fecha #define num_tra 200 #define lar_lin 2 #define lar_est 3 #define lar_pry 4 #define lar_num 20 extern void gua_rut(char *buf); char ruanex[(lmax+1)*2][7] ; /* Rutas Consideradas como Anexos */ struct llamad { char lin[2],num[20],pry[8],est[3]; } lla_tra[num_tra+1]; int max_tra ; extern char rgua[]; // Procesos Iniciales (Inicializar Variables, Abrir // Archivos especiales, etc) void in_central() { rgua[0] = '\0'; } // Procesos de Finalización (Cerrar Archivos especiales, etc) void fi_central() { } /* procedimiento que modifica informaciňn asociada a una linea*/ void mod_info(int est,int lin,int num,int pry,char *buf) { int it,i,j=max_tra,i_lin=0 ; while (i_lin!=lar_lin && j>=0 ) { for(i=0;i=0 ) { for(i=0;i0) flag = bus_li(lin,buf); if (flag == 0) { if (max_tra>=num_tra) { j=0 ; while (j=0 ) { for(i=0;ivnumero && buf[vfech+2]=='/' && buf[vfech+5]=='/' && buf[vhor+2]==':')// && (buf[vtranf]=='<' || buf[vtranf+2]=='>')) { k = 0 ; /* if ( buf[vtranf+0]=='<' ) vtip = 'I'; else */ vtip = 'O'; if ( buf[vtranf+0]=='-' ) agr_tra(vtip,vestac,vlinea,vnumero,vproye,vdurac,buf) ; if ( buf[vtranf+0]=='T' ) bus_tra(vestac,vlinea,aest,anum,apry,buf) ; for (it = 0;(buf[vestac+it]!=' ' && buf[vestac+it]!='-' && (vestac+it) i) tel[k++] = '*' ; else { for (it=0;it<16 && buf[vproye+it]