Re: strpbrk(...) vs. strcspn(...) by Jerry
Jerry
Tue May 11 08:58:21 CDT 2004
In article <730F0FF6-B855-4793-A9B5-746CC6D05F71@microsoft.com>,
anonymous@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.