3 ms·
> Ever seen a ROM? How does the data get onto the ROM? But read 2 sentences further, where I had addressed this already. > Think memcpy, not strstr. See my
by jstimpfle 3y ago
> Ever seen a ROM?
How does the data get onto the ROM?
But read 2 sentences further, where I had addressed this already.
> Think memcpy, not strstr.
See my other comments, I do think that making const function parameters is generally good for documentation and compatibility. strstr() is only a showcase for the limitations. Typically, const works for function parameters but not data structures.