Subversion Repositories Tewi

Rev

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

Rev 212 Rev 215
Line 1... Line 1...
1
/* $Id: dir.c 212 2024-10-02 17:44:55Z nishi $ */
1
/* $Id: dir.c 215 2024-10-02 19:24:43Z 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 16... Line 16...
16
	char* b = *(char**)_b;
16
	char* b = *(char**)_b;
17
	return strcmp(a, b);
17
	return strcmp(a, b);
18
}
18
}
19
 
19
 
20
char** cm_scandir(const char* path) {
20
char** cm_scandir(const char* path) {
21
#ifdef _MSC_VER
21
#if defined(_MSC_VER) || defined(__BORLANDC__)
22
	return NULL;
22
	return NULL;
23
#else
23
#else
24
	DIR* dir = opendir(path);
24
	DIR* dir = opendir(path);
25
	if(dir != NULL) {
25
	if(dir != NULL) {
26
		char** r = malloc(sizeof(*r));
26
		char** r = malloc(sizeof(*r));