This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strrstr


On Wed, Apr 30, 2008 at 6:10 PM, Reuben Thomas <rrt@sc3d.org> wrote:
>  It fills an obvious gap in the API (strchr, strrchr; strstr, strrstr), and
> has the same semantics and name pretty much everywhere, so there's no
> contention to resolve in what it should be called or do.

I'm CC'ing libc-help in order to continue this dicussion.

If you are really interested in adding reverse search variants to the
API you will need to do a little leg work.

1. What other C libraries implement these functions?
2. How does relying on these functions effect portability between OSs?
3. Are all the strrstr's the same? Do you have a test suite which
shows they are the same?
4. Does your strrstr support all the new character types being
proposed by TR 19769 for the C standard?

There is a big gap between inspiration and implementation :-)

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]