Reputation: 773
I have a C console app where I need to output the absolute path to a file given a (possibly) relative path. What is the best way to do this in C in a Windows environment?
Upvotes: 6
Views: 14496
Reputation: 9260
GetFullPathName should help you on Windows.
GetFullPathName merges the name of the current drive and directory with a specified file name to determine the full path and file name of a specified file.
Upvotes: 4