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 (firstname.lastname@example.org) (email@example.com)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
|All times are GMT. The time now is 12:36 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.