On Fri, Dec 9, 2016 at 8:24 AM, Dipak Gaigole wrote: > Agreed Andrey. But I couldn't find any API(s) which can serve my > requirements. And we can't afford to execute (fork+exec) tools like > cygpath for each getcwd call. > Any suggestions on improving this approach or any alternative approach > are always welcome.
https://cygwin.com/cygwin-api/func-cygwin-conv-path.html Note the CCP_PROC_CYGDRIVE option. Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple