title: C Program to write the contents of a directory
body: <p>I need to write a simplified version of the ls program in C. It is going to list all of the contents of the current directory. When ran, it should display the same output as this command:</p>
  
  <pre><code>ls -alU --time-style=long-iso
  </code></pre>
  
  <p>No arguments are provided to the program. I am having trouble getting started, but I do know I am going to have to make some system calls such as, opendir(), readdir(), lstat(), and getpwuid(). Any help in getting me off the ground and into it is greatly appreciated. I also really want to understand this. Thanks!</p>