title: How to get the parent directory of the current folder in a C program?
body: <p>I am trying to get the parent directory of the current folder in which i have the program. 
  I need to include in the C program I have. I tried doing it through string methods and solve it, but I feel there can be a better and simpler way. Eg: If his path is “C:\Application\Config”, then I want to get - “C:\Application” the just parent path.<br>
  Can some one please help me with this?</p>
  
  <p>Thanks,
  Priyanka</p>