News for hackers. Stuff that matters.
Re:On leading underscores and names reserved by the C and C+... by AdamH12113 on Wednesday January 11, 2023 @10:56AM (#34339841)
He says where they come from -- section 7.31 of the C11 standard[1]. For example, in 7.31.12:

> Function names that begin with str and a lowercase letter may be added to the declarations in the <stdlib.h> header.

Or 7.31.13:

> Function names that begin with str, mem, or wcs and a lowercase letter may be added to the declarations in the <string.h> header.

So according to the standard, if your code #includes string.h, it may conflict with a future version of the standard if you use names like "strong" or "memorize". This is extraordinarily unlikely, though.

[1] https://port70.net/~nsz/c/c11/n1570.html#7.31

There are no comments on this comment yet.