title: How can I get the list of files in a directory using C or C++?
body: <p>How can I determine the list of files in a directory from inside my C or C++ code?</p>
  
  <p>I'm not allowed to execute the <code>ls</code> command and parse the results from within my program.</p>