A
ash4640
1.Guys how do i write a function similar to the strcmp() in the librar
like some xstrcmp().
2. How do i write another function eg x() which compares two strings
const char *string, const char *strSearch ie
*string="Hai hello"
*strSearch="ai"
I have to search for ai in the string "Hai Hello" and then return "a
Hello" if found or return NULL if not found.
Hope You can guys can help out a newbie if you cannot get me the whol
func get me some prototype atleast so I can work it out.
Also try to get me the first strcmp() func.
regards
Ash
-
ash464
like some xstrcmp().
2. How do i write another function eg x() which compares two strings
const char *string, const char *strSearch ie
*string="Hai hello"
*strSearch="ai"
I have to search for ai in the string "Hai Hello" and then return "a
Hello" if found or return NULL if not found.
Hope You can guys can help out a newbie if you cannot get me the whol
func get me some prototype atleast so I can work it out.
Also try to get me the first strcmp() func.
regards
Ash
-
ash464