On Thu, Feb 19, 2026 at 02:32:45PM +0100, Alejandro Colomar via Mutt-dev wrote: > However, I wouldn't worry > about performance in systems that don't implement strchrnul(3); those > are rare, and the difference would be small-ish. Let the systems > implement strchrnul(3) if they care about performance.
I could certainly write a native strchrnul() for OpenBSD, but I doubt there would be interest there in accepting a such function for which obvious work-arounds and replacements already exist. We recently had some breakage in MATE due to glic extensions to strftime() not being implemented. I floated a proof of concept minimal implementation that fixed the specific issue but interest in it was effectively zero. In reality, strchrnul() in third party code is being locally replaced with alternative constructs such as: foo = strchrnul(bar, 'X'); foo = foo + strcspn(bar, "X");
