Re: Please add strrstr

2008-08-02 Thread Bruno Haible
Hi, Reuben Thomas wrote: > strrstr, which is to strstr as strrchr is to strchr, is a useful and > moderately widely-used function. Is it useful? Like strstr, is works on strings of bytes, not characters. I.e. if it is applied to strings of characters, the result is wrong in multibyte locales who

Please add strrstr

2008-08-01 Thread Reuben Thomas
Hi, strrstr, which is to strstr as strrchr is to strchr, is a useful and moderately widely-used function. It's included in source form in quite a few programs. I have written an implementation that is part of a GNU program (GNU Zile). I'd be happy to see it in gnulib. Any chance of that? What