Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [REQUEST] GetDriveName function for Path.h
Re: [REQUEST] GetDriveName function for Path.h [message #20848 is a reply to message #20812] Tue, 14 April 2009 10:36 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Yes, you are right maybe this is too simple to add.

Initially, I had that:

#ifdef PLATFORM_WIN32
inline String GetDriveName(const String& path) { return path.Left(path.FindFirstOf(":")+1); }
#endif


Matthias
 
Read Message
Read Message
Read Message
Previous Topic: .ini file
Next Topic: problem with system() under windows [SOLVED]
Goto Forum:
  


Current Time: Mon Apr 28 15:29:54 CEST 2025

Total time taken to generate the page: 0.00788 seconds