Subversion Repositories Tewi

Rev

Rev 22 | Rev 212 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 150
Line 1... Line 1...
1
/* $Id: dir.c 22 2024-09-14 13:25:38Z nishi $ */
1
/* $Id: dir.c 150 2024-09-24 20:15:17Z nishi $ */
2
 
2
 
3
#include "cm_dir.h"
3
#include "cm_dir.h"
4
 
4
 
5
#include "cm_string.h"
5
#include "cm_string.h"
6
 
6
 
Line 52... Line 52...
52
		for(i = 0; old[i] != NULL; i++) r[i + 1] = old[i];
52
		for(i = 0; old[i] != NULL; i++) r[i + 1] = old[i];
53
		r[0] = cm_strdup("../");
53
		r[0] = cm_strdup("../");
54
		r[i + 1] = NULL;
54
		r[i + 1] = NULL;
55
		free(old);
55
		free(old);
56
 
56
 
-
 
57
		closedir(dir);
-
 
58
 
57
		return r;
59
		return r;
58
	} else {
60
	} else {
59
		return NULL;
61
		return NULL;
60
	}
62
	}
61
}
63
}