On Mon, 12 Dec 2022 at 16:10, Jakub Jelinek <ja...@redhat.com> wrote: > > On Mon, Dec 12, 2022 at 04:56:27PM +0100, Alejandro Colomar wrote: > > "Names beginning with ‘str’, ‘mem’, or ‘wcs’ followed by a lowercase letter > > are reserved for additional string and array functions. See String and Array > > Utilities." > > It is not that simple. > mem*, str* and wcs* are just potentially reserved identifiers, they are only > reserved if the implementation provided them.
And only if the program includes <string.h>. > And what we discuss here > is how to reliably find out if it was an implementation that provided them, > because in case of gcc the implementation is GCC and the C library and > perhaps some other libraries too. > gcc can be used with lots of different C libraries, and many don't implement > mempcpy. > > Jakub >