Home » U++ Library support » U++ Core » How to get path separator depended on platform?
How to get path separator depended on platform? [message #44556] |
Fri, 27 March 2015 23:29  |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I would like to ask is there any official way to get path separator character on current platform in Upp Core library.
Pseudo code of function that I am looking for:
String DirSeparator() {
#if defined(PLATFORM_POSIX)
return "/";
#elif defined(PLATFORM_WIN32) || defined(PLATFORM_WIN64)
return "\\";
#endif
}
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Fri, 27 March 2015 23:33] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 14:47:21 CEST 2025
Total time taken to generate the page: 0.01063 seconds
|