#define americano 0 #define europeo 1 #define lmax 200 #define posin 18 #define estac 19+posin #define linea 23+posin #define durac 57+posin #define hor 9 +posin #define fech 0 +posin #define tranf 9 +posin #define numero 26+posin #define ccost 0 #define proye 66+posin #define cuenta 0 #define pulsos 0 #define ruta 0 #define prinum 0 #define ring 52+posin #define antran 0 // anexo transferido #define fofech americano extern char rgua[]; void in_central() { rgua[0]='\0'; } void fi_central() { } 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 ka,it,lent,k,i=strlen(buf),hopm,j,cont; char shora[5]; char aux,tipo ; aux = 0; cont=0; if (i>vdurac && buf[vfech+2]=='/' && buf[vfech+5]=='/' && buf[vhor+2]==':' && buf[vdurac+2]==':') { k=0; for (it=0;isdigit(buf[vestac+it])&&it= '0' && buf[it] <= '9') tel[k++] = buf[it] ; } if (k == ka) tel[k++] = '*' ; } tel[k++] = ' ' ; tel[k++] = '*' ; tel[k++] = '*' ; tel[k++] = '*' ; tel[k++] = ' ' ; for (j=0;j<4;j++) { if (isdigit(buf[vproye+j])) {tel[k++] = buf[vproye+j] ; cont++;} } if(cont==0)tel[k++] = '*';cont=0; /* if isdigit(buf[vproye+4]) { for (it=0;it