You could tokenize (strtok) by "<" and stick each piece into a vector or so... then get it's size().
That sounds like the hard way. strtok() embeds NULLs in the string, which might corrupt the std::string class.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Online 21,949 posts
since Aug 2005