title: How to rename a directory in C?
body: <p>I searched online to find that how to change the directory name? But I found nothing. All I found was <code>rename()</code> that was changing filenames. I want to change a directory name. Linux uses <code>mv</code> command for renaming a directory but if the directory contains large files then moving will take time more right? I want to do this in C.</p>