This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]