Question: how do i write a main.c program for this? i need to declare the function in a .h file i am guessing and use it

how do i write a main.c program for this? i need to declare the function in a .h file i am guessing and use it as a header in the main.c. but i am confused how to write a main.c and then contain.c without the main fucntion.
how do i write a main.c program for this? i need to

contains.c #include #include 5 void main(int argc, char *argv[] ); char *stri, *str2; if( argc != 3 ) { printf("The argument supplied is/are invalid "); stri = argv[1]; str2 = argv[2]; if(strstr(stri, str2)) 15 printf("true "); } else { printf("false ")

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!