Implement C23 const-preserving standard library macros

Andreas Schwab schwab@suse.de
Mon Jan 19 11:45:54 GMT 2026


On Nov 18 2025, Joseph Myers wrote:

> C23 makes various standard library functions, that return a pointer
> into an input array, into macros that return a pointer to const when
> the relevant argument passed to the macro is a pointer to const.

Shouldn't this be disabled when compiling with -std=gnu17?

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list