title: function to split a filepath into path and file
body: <p>Lets say I have a function:</p>
  
  <pre><code>void split_path_file(char** p, char** f, char *pf)
  {
      //malloc and set *p to file path, malloc and set *f to file name
      //pf is the pointer to the full file and path "C:\sponge\bob\square.pants"
      // edit: leave pf in its origional state
  }
  </code></pre>
  
  <p>Whats the best way to accomplish this?</p>