Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What's a good name for...

Name: Anonymous 2012-06-04 11:08

A function that's like strchr or strrchr, but finds either the first or last character of a string that is NOT equal to the given character?

Name: Anonymous 2012-06-04 20:21

The evil twin of strspn is strcspn, so strcchr.

Name: Anonymous 2012-06-04 20:28

>>1
They'd probably be called strcchr and strrcchr. I think strspn with a single-character string does what you want.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List