title: My ls -R doesn't work
body: <p>Having issues with my ls -R implemented in C. When I run the program with command ./myls -R nothing displays, all blank:(Help needed. </p>
  
  <pre><code>int print_Recursive(char *dirname)
  
  {
  char fbuf [256];
  DIR *dir;
  struct dirent *dirp;
  struct stat sbuf;
  
  printf("\n");
  dir = opendir(dirname);
  
  while ((dirp = readdir(dir)))
  {
      if(strcmp(dirp-&gt;d_name, ".") != 0 &amp;&amp;
         strcmp(dirp-&gt;d_name, "..") != 0)
      {
          sprintf(fbuf, "%s/%s", dirname, dirp-&gt;d_name);
  
      }
  }
  closedir(dir);
  
  
  return 0;
  }
  
  
  int print_file(char *file, char *dir, struct stat buf, int showinode, int showlong, int showRec)
  {
  if (showinode)
      printf("%lld ", buf.st_ino);
  
  if (showlong)
      print_long(file, dir, buf);
  
  if (showRec)
      print_Recursive(dir);
  else
      printf("%s\n", file);
  
  return 0;
  }
  </code></pre>
  
  <p>Cannot figure out what I am doing wrong:(</p>