http://www.riscos.info/bugzilla3/show_bug.cgi?id=229
Summary: GCC 4.1.2 Release 2 Dev: glob() ignores files with
hardspace.
Product: GCC/GCCSDK
Version: other
Platform: Other
OS/Version: RISC OS
Status: NEW
Severity: normal
Priority: P1
Component: C compiler
AssignedTo: John.Tytgat@aaug.net
ReportedBy: duncan_moore@ntlworld.com
Estimated Hours: 0.0
GCCSDK GCC 4.1.2 Release 2 Development
VRPC RISC OS 4.39
This program doesn't list filenames in cwd with a hardspace:
#include <stdio.h>
#include <glob.h>
int main(void) {
glob_t file_list;
int flags=0;
int err=glob("*",flags,NULL,&file_list);
printf("err = %i\n",err);
printf("file_list->gl_pathc = %lu\n",file_list.gl_pathc);
for (size_t i=0;i<file_list.gl_pathc;++i) {
printf("%lu %s\n",i,file_list.gl_pathv[i]);
}
return 0;
}
--
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK
No comments:
Post a Comment