Question: ( 3 0 p ) Write a function int foo ( char * Large , char * small ) that counts the number of times

(30p) Write a function int foo( char *Large, char *small ) that counts the number of
times the string small (a string of length 100) appears in another string large (a string of length
in reversed form. Do not use array notation, use pointers. Efficiency is importanti
You can use the following functions:
int rev ( char *dest, char *src) reverses src into dest.
int cmp( char *s1, char *s2) returns 1 if the first 100 characters of 51 an s2 are same.
int foo( char *Large, char *small ){ write in C
 (30p) Write a function int foo( char *Large, char *small )

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!