Re: need some help
shailesh.budhan er@gmail.com wrote:[color=blue]
> Hi
> u can use strstr function which returns int telling position of first
> occurance of one string in other string
> by using that position(index) u can return poiter.
> ash wrote:
>[/color]
On my system, string.h has an entry..
char * strstr(const char *_s1, const char *_s2);
...suggesting strstr does not return int.
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
shailesh.budhan er@gmail.com wrote:[color=blue]
> Hi
> u can use strstr function which returns int telling position of first
> occurance of one string in other string
> by using that position(index) u can return poiter.
> ash wrote:
>[/color]
On my system, string.h has an entry..
char * strstr(const char *_s1, const char *_s2);
...suggesting strstr does not return int.
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Comment