#define americano 0 #define europeo 1 #define lmax 200 #define posin 18 #define ladat 82+posin #define estac 35+posin #define linea 24+posin #define durac 40+posin #define hor 9+posin #define fech 2+posin #define tranf 0+posin #define numero 56+posin #define ccost 0 #define proye 75+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 /* #define americano 0 #define europeo 1 #define lmax 200 #define posin 18 #define estac 37+posin #define linea 27+posin #define durac 42+posin #define hor 11+posin #define fech 4+posin #define tranf 0+posin #define numero 58+posin #define ccost 0 #define proye 77+posin #define cuenta 0 #define pulsos 0 #define ruta 0 #define prinum 0 #define ring 54+posin #define antran 0 // anexo transferido #define fofech americano */ #define larnum 19 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) { char feco,horo,aux;//duro ; int i=strlen(buf),k,ka,it,siga; aux = 0; siga = i>(vestac+3) && i>(vlinea+2) && i>(vdurac+5) && i>(vhor+4) && i>(vfech+4) && i>(vring+2) && isalpha(buf[vtranf]) ; feco = isdigit(buf[vfech]) && isdigit(buf[vfech+1]) && isdigit(buf[vfech+2]) && isdigit(buf[vfech+3]) && isdigit(buf[vfech+4]) && isdigit(buf[vfech+5]) ; horo = isdigit(buf[vhor]) && isdigit(buf[vhor+1]) && isdigit(buf[vhor+2]) && isdigit(buf[vhor+3]) && isdigit(buf[vhor+4]) && isdigit(buf[vhor+5]) ; // duro = isdigit(buf[vdurac]) && isdigit(buf[vdurac+1]) && isdigit(buf[vdurac+2]) && isdigit(buf[vdurac+3]) && isdigit(buf[vdurac+4]) && isdigit(buf[vdurac+5]) ; if (siga && feco && horo)// && duro) { k = 0 ; for (it=0;it