Re: extracting string
firstname.lastname@example.org (qazmlp) writes:
> const char* big = "abcdefgh123" ;
> const char* small = "bcd" ;
> Now, I want to extract the remaining string from big, after the small
> That is the result string should have "efgh123".
If you are sure that `small' is present in `big':
const char *remainder = strstr (big, small) + strlen (small);
"The way I see it, an intelligent person who disagrees with me is
probably the most important person I'll interact with on any given
|All times are GMT. The time now is 08:45 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.