This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygwin_conv_path() documentation RFE
- From: Warren Young <warren at etr-usa dot com>
- To: Cygwin-L <cygwin at cygwin dot com>
- Date: Thu, 17 Dec 2009 19:29:38 -0700
- Subject: cygwin_conv_path() documentation RFE
On this page
http://cygwin.com/1.7/cygwin-api/func-cygwin-conv-path.html
the size parameter should say whether it's measured in bytes or
characters.
For instance, if I pass CCP_POSIX_TO_WIN_W for the first parameter and a
pure ASCII file name for the 'from' parameter, it's obvious the 'to'
buffer needs to be at least 2x the size of 'from'. The question the
docs don't answer is whether I should pass >= 2*(strlen(from)+1) for
size or >= strlen(from)+1?
--
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