X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B2AE912.7090003@etr-usa.com>
Date: Thu, 17 Dec 2009 19:29:38 -0700
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: cygwin_conv_path() documentation RFE
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

