New API call for path conversion

Dave Korn dave.korn@artimi.com
Sun Feb 24 14:24:00 GMT 2008


On 22 February 2008 18:02, Corinna Vinschen wrote:

>>> "size" is the size of the "to" buffer in bytes (not in characters).
>>> If size is 0, cygwin_conv_path returns the required buffer size in
>>> bytes.
>> 
>> Including or excluding the trailing NUL?  I'd argue for excluding.
> 
> Oh, hmm, I would have argued for including the trailing 0.  It's simply
> safer.  We're talking about a buffer size, not about a string length.

  Yes, yes, yes, a thousand times yes.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Cygwin-developers mailing list