online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <dirent.h> #include <string.h> void listaDir(char nome[]) { DIR *folder; struct dirent *entry; char aux[50]; gets(aux); folder = opendir(nome); if(folder == NULL) { //perror("Unable to read directory"); return; } while( (entry=readdir(folder)) ) { if(strcmp(entry->d_name, ".")!=0 && strcmp(entry->d_name, "..")!=0) //chamo recursivamente { printf("%s/%s\n", nome, entry->d_name); char nomeAux[50]; strcpy(nomeAux, nome); strcat(nomeAux, "/"); strcat(nomeAux, entry->d_name); listaDir(nomeAux); } } closedir(folder); } int main() { char aux[50]; gets(aux); listaDir(".."); return(0); }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue