Lines Matching defs:rootlen
646 static int rootlen = 0; /* length of rootpath */
793 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+1))
796 if ((rootlen > 0) && !renamed_fullpath) {
798 end = buildpath + rootlen;
819 rootlen = 0;
822 if (rootlen > 0) /* rootpath was already set, nothing to do */
824 if ((rootlen = strlen(pathcomp)) > 0) {
827 if ((tmproot = (char *)malloc(rootlen+2)) == (char *)NULL) {
828 rootlen = 0;
837 rootlen = 0;
848 rootlen = 0;
854 if (tmproot[rootlen-1] == '/' || tmproot[rootlen-1] == '_') {
855 tmproot[--rootlen] = '\0';
857 tmproot[rootlen++] = '_';
858 tmproot[rootlen] = '\0';
859 if ((rootpath = (char *)realloc(tmproot, rootlen+1)) == NULL) {
861 rootlen = 0;
876 if (rootlen > 0) {
878 rootlen = 0;