Re: extracting string
> const char* big = "abcdefgh123" ;
> const char* small = "bcd" ;
> Now, I want to extract the remaining string from big, after the
> small contents. That is the result string should have "efgh123".
> I am confused about how to do it ?
if ((p = strstr(big, small))) p += strlen(small);
Chuck F (email@example.com) (firstname.lastname@example.org)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
|All times are GMT. The time now is 01:50 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.