HI,

So the strstr searches the two strings given for the first occurance of the substring? And then returns a pointer?
Yes.

It is a Function that takes two arguments both strings and returns a pointer to the occurance of the first argumrnt in the second ............else returns NULL

Excuse my n00bness, but what's a pointer?
Pointer is a variable that contains the address of another variable.

e.g

when you declare a variable say char str[5]

5 consicutive locations are allocated for str in the memory.........all of them can be independently addressed........when i say

ptr= &str;

The base address of the variable str (first of the 5 consituve location) will be passd on to the ptr.................ptr is a pointer to str

Hope this helps .......



--Good Luck--