[PATCH] [BZ #17596] mblen return code when n is zero

Paul Eggert eggert@cs.ucla.edu
Thu Nov 13 16:07:00 GMT 2014


Andreas Schwab wrote:
> A non-existing character is valid, no?

Yes, mbrtowc should return (size_t) -2 when given an empty input buffer.



More information about the Libc-alpha mailing list