Question: int isContained (char*, int, char*, int); int main() { char sl[STR LEN); char s2 [STR_LEN); printf(Please enter the first string: ); fgets (sl, STR_LEN, stdin);

 int isContained (char*, int, char*, int); int main() { char sl[STR

int isContained (char*, int, char*, int); int main() { char sl[STR LEN); char s2 [STR_LEN); printf("Please enter the first string: "); fgets (sl, STR_LEN, stdin); sl[strlen(sl)-1]='\0'; printf("Please enter the second string: "); fgets (S2, STR_LEN, stdin); s2[strlen(82)-1)='\0'; printf("The first string is %s ", s1); printf("The second string is %s ", s2); if (isContained (si, strlen(sl), s2, strlen(82)) =-1){ printf("The second string is a substring of the first string "); } else { printf("The second string is NOT a substring of the first string ") return 0; int isContained (char *si, int size_si, char *s2, int size_s2){ // YOUR CODES return -1; // For compilation. You need to change it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!