Home » U++ Library support » U++ Core » Linux and GetCurrentDirectory
|
Re: Linux and GetCurrentDirectory [message #33879 is a reply to message #33878] |
Tue, 20 September 2011 23:54 |
|
GetCurrentDirectory() returns, as the name says, the current directory, which on most non-windows systems is the directory from where the binary was executed, non where it resides. To obtain the position of the binary, there is GetExeFilePath().
Best regards,
Honza
PS: Also, the current directory can change while the program is running.
[Updated on: Wed, 21 September 2011 07:16] Report message to a moderator
|
|
|
|
Re: Linux and GetCurrentDirectory [message #33883 is a reply to message #33878] |
Wed, 21 September 2011 09:27 |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
Sure, but it can change only by direct action of the executable IIRC (calling change dir). Anyway, current directory doesn't depend on executable path at all.
|
|
|
Goto Forum:
Current Time: Sat Apr 27 18:24:44 CEST 2024
Total time taken to generate the page: 0.06281 seconds
|