This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] |
Rajalakshmi Srinivasaraghavan wrote:
The return code 0 and -1 can both be justified when n=0.
As a user of these functions, I'd far rather that mblen and mbtowc returned -1 when given empty inputs. Having them return 0 implies that they've gone past the boundaries of their input buffers, which really ought to be a no-no.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |