Program is to enter a string and search for a specific word in that string. Output should be the first alphabet of the word searched for.
I'm gettin errors and I'm not able to fix 'em. Please help
char *substr(char *string1,char string2);
So, substr is declared as a function with two parameters. The first is a pointer-to-char and the second is a single char.
In the definition:char *substr(char *string1,char *string2[])
substr is a function with two parameters. The first is a pointer-to-char and the second is a pointer-to-pointer-to-char, which hopefully you can see does not remotely match how you told the compiler you were going to define the function.
I'm gettin errors and I'm not able to fix 'em. Please help
When you're "gettin errors" post the full text of the (first few) errors with your code.