Sujet : Re: Memory protection between compilation units?
De : wyniijj5 (at) *nospam* gmail.com (wij)
Groupes : comp.lang.cDate : 13. Jun 2025, 19:16:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <92d8fbd8b5ae741ee915fdf4d95e5a374108f37f.camel@gmail.com>
References : 1 2 3
User-Agent : Evolution 3.56.2 (3.56.2-1.fc42)
On Fri, 2025-06-13 at 08:03 +0200, Bonita Montero wrote:
Am 12.06.2025 um 15:05 schrieb Tim Rentsch:
void update_my_socks(int *sock, int val) {
const unsigned N = sizeof socks / sizeof socks[0];
socks[val % N] = sock;
}
For someone who uses bounds-checked containers in C++ every day
this really looks achaic.
Really? What are they?