【发布时间】:2013-08-24 20:31:33
【问题描述】:
这是我的比较函数...
int nameSort(const struct dirent** file1, const struct dirent** file2){
char* a = *file1 -> d_name;
char* b = *file2 -> d_name;
//printf("comparing %s AND %s\n", a, b);
return strcasecmp(a,b);
}
am 错误:在非结构或联合的情况下请求成员“d_name” 这里有什么问题?
【问题讨论】: