title: How to list all subdirectories in a given directory in C?
body: <p>Is there a way to list all subdirectories in a given directory path in C? I was hoping I would be able to do it with the <code>stat()</code> function but it only works on files.</p>