title: Get list of directories in C
body: <p>I have to believe that this question must have been already answered multiple times, but I cannot find it.   Using Visual Studio C (not C++ or C#), how do I get a list of directories inside another directory?   I've tried searching "get list of directories" and "get list of folders" and "find folders in a directory".</p>
  
  <p>Can someone enlighten me as to 1) actually get a directory list and 2) what I am doing wrong in my choice of search terms that I am unable to find what I think should be a relatively frequent question.</p>