<br><br>On Friday, July 3, 2020, Jody Bruchon <<a href="mailto:jody@jodybruchon.com">jody@jodybruchon.com</a>> wrote:<br>><br>><br>> On July 2, 2020 11:29:06 AM EDT, Kang-Che Sung <<a href="mailto:explorer09@gmail.com">explorer09@gmail.com</a>> wrote:<br>>>On Thursday, July 2, 2020, Jody Bruchon <<a href="mailto:jody@jodybruchon.com">jody@jodybruchon.com</a>> wrote:<br>>>>  /* Find out if the last character of a string matches the one given<br>>>*/<br>>>> -char* FAST_FUNC last_char_is(const char *s, int c)<br>>>> +char* FAST_FUNC last_char_is(char *s, char c)<br>>><br>>>Why are you removing the const qualifier, and how would that reduce the<br>>>code size?<br>><br>> Why does it need the const in the first place? The code I wrote does reduce the code size.<br><br>Any pointer parameter whose content is meant to be read-only is good to be declared const. It's a compiler safety check that you won't accidentally modify the content there. The const qualifier by itself doesn't add code.