--- capa/capa51/GUITools/common.funct.c 1999/09/28 21:25:41 1.1.1.1 +++ capa/capa51/GUITools/common.funct.c 1999/11/02 19:10:44 1.2 @@ -126,6 +126,24 @@ int capaGetExistingSections(ClientData c return TCL_OK; } +/* finds how many set.db files there are */ +int howManySetDBFile() +{ + char filename[BUFFER_SIZE], *pathName; + int ii; + + pathName=getcwd(NULL,BUFFER_SIZE); + ii=1; + sprintf(filename,"%s/records/set%d.db",pathName,ii); + while(!access(filename, F_OK)) { + ii++; + sprintf(filename,"%s/records/set%d.db",pathName,ii); + } + free(pathName); + return (ii-1); +} + + void message() { unsigned char *message=