|
|
|
|
|
by outsomnia
883 days ago
|
|
If nothing else, const in an api is a very clear and welcome indication of what to expect. Like myapi(uint8_t *dest, const uint8_t *src, size_t dest_len, size_t src_len), it's very clear what will be doing what with what. You can cast const away and do something unexpected in there, but that's on you doing the Wrong Thing. |
|