In article <73**********************************@microsoft.co m>,
an*******@discussions.microsoft.com says...
What is the difference between these two functions?
strcspn returns a character position where strpbrk returns a pointer.
Other than that, if no character is found, strpbrk returns a null
pointer; IIRC, under the same circumstances strcspn returns the index
of the NUL at the end of the string (which is rarely useful).
--
Later,
Jerry.
The universe is a figment of its own imagination.