Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: