#define americano 0 #define europeo 1 #define lmax 200 // 200 #define posin 18 #define estac 21+posin #define linea 18+posin #define durac 39+posin //33+posin #define hor 9+posin #define fech 0+posin #define tranf 69+posin //63+posin #define numero 48+posin //42+posin #define ccost 0 #define proye 0 #define cuenta 0 #define pulsos 0 #define ruta 0 #define prinum 0 #define ring 33+posin //27+posin #define antran 0 // anexo transferido #define fofech europeo // ok #define ladat 82+posin #define l_nume 16 char lgua[lmax+3]; char *cuf; int mc = 0 ; extern char rgua[]; void in_central() { rgua[0]='\0'; } void fi_central() { } void gua_buf(char *buf) { strcpy(lgua,buf); } void DatCentral(char *buf, char *tel, int vestac, int vlinea,int vdurac,int vhor, int vfech, int vtranf, int vnumero, int vccost,int vproye, int vcuenta, int vpulsos, int vruta, int vprinum, int vring, int vantran, int vfofech) { int i,k,it, cont,j; i = strlen(buf) ; k =0; cont=0; if (i>vtranf-1 && buf[vfech+2]=='.' && buf[vhor+2]==':' && isdigit(buf[vtranf])) { if(buf[vtranf]=='1' || buf[vtranf]=='2') { gua_buf(buf); cuf = lgua; } for(it=0;it<4;it++) { if isdigit(buf[vestac+it]) {tel[k++]= buf[vestac+it]; cont++;} } if(cont==0) tel[k++] ='*'; cont=0; tel[k++] =' '; for(it=0;it<3;it++) { if isdigit(buf[vlinea+it]) {tel[k++]= buf[vlinea+it]; cont++;} } if(cont==0) tel[k++] ='*'; cont=0; tel[k++] =' '; if (isdigit(buf[vdurac])) { for (it=0;it<8 && it