Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

FILE_Access

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.13 sec, absolute service time: 0,22 sec 
edit mode |  history  | discussion
Error(s):
source_file.c: In function ‘getfilenames’:
source_file.c:22:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘unsigned’
     unsigned int i;
     ^
source_file.c:28:15: error: ‘ent’ undeclared (first use in this function)
        while((ent = readdir (dir)) != NULL)
               ^
source_file.c:28:15: note: each undeclared identifier is reported only once for each function it appears in
source_file.c:33:25: error: ‘dp’ undeclared (first use in this function)
        (void) closedir (dp);
                         ^
source_file.c: At top level:
source_file.c:70:1: error: expected identifier or ‘(’ before ‘if’
 if ((dir = opendir ("c:\\src\\")) != NULL) {
 ^
source_file.c:76:3: error: expected identifier or ‘(’ before ‘else’
 } else {
   ^