This is the mail archive of the cygwin-developers 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]

RE: New API call for path conversion


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....


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