title: Creating a new directory in C
body: <p>I want to write a program that checks for the existence of a directory; if that directory does not exist then it creates the directory and a log file inside of it, but if the directory already exists, then it just creates a new log file in that folder.</p>
  
  <p>How would I do this in C with Linux?</p>