find users home dir c++
I'm writing a program that need to store data in an ini file. All I would like to know is how do i find the path to a users hoem directory in C++.
ie i want to save the file ~/.file.ini but need to know how to find what ~ actually is.
thanks in advance