[PATCH] libbb/last_char_is: rewrite for smaller and faster code

Kang-Che Sung explorer09 at gmail.com
Thu Jul 2 15:29:06 UTC 2020


On Thursday, July 2, 2020, Jody Bruchon <jody at jodybruchon.com> wrote:
>  /* Find out if the last character of a string matches the one given */
> -char* FAST_FUNC last_char_is(const char *s, int c)
> +char* FAST_FUNC last_char_is(char *s, char c)

Why are you removing the const qualifier, and how would that reduce the
code size?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200702/4fe4dfb0/attachment.html>


More information about the busybox mailing list