strlcpy(common, fspec[0], sizeof(common)); for (i = 1; i < fsn; i++) { for (c = 0; ; c++) { if (common[c] != fspec[i][c]) {  while ((c > 0) && (common[--c] != '/')) common[c] = '\0'; break; } } } if (*common == '\0') strlcpy(common, ".", sizeof(common));
cvs_file_getspec(char **fspec, int fsn, int flags){	int i, c;	char common[MAXPATHLEN];	CVSFILE *cfp;	/* first find the common subdir */	strlcpy(common, fspec[0], sizeof(common));	for (i = 1; i < fsn; i++) {		for (c = 0; ; c++) {			if (common[c] != fspec[i][c]) {				/* go back to last dir */				while ((c > 0) && (common[--c] != '/'))					common[c] = '\0';				break;			}		}	}	if (*common == '\0')		strlcpy(common, ".", sizeof(common));	/* first load the common subdirectory */	cfp = cvs_file_get(common, flags);	for (i = 0; i < fsn; i++) {	}	return (cfp);}