title: Making own 'tar' program... how to create files/directories with C code?
body: <p>My own tar file can currently use the 'c' and 't' commands correctly (creating he archive, reading the archive), but I'm completely unaware of how to implement 'x' (extracting the archive).</p>
  
  <p>Using C code, how can I recreate a directory / file? I know I can successfully read what is in my .tar file, I'm just not sure of the C function that is used to create directores / files.</p>
  
  <p>NOTE: I've asked multiple people, they couldn't help me. Googled the problem for an hour, but the question is vague enough that I got about 10000 websites answering a different problem.</p>