I am having troubles with setuping the next part of the question. Also I am not exactly sure if my scanning parts for strings are correct. I'm trying get the using to input a 4 character string (s1), then another string less than 4 characters
(s2) to determine if s2 is a substring of s1.

here is my code so far:

Code:
#include <stdio.h>
int main()
{

	char s1[4];
	char s2[4];

	int i;

	
	printf("\nEnter three character word for string1: ");
	scanf("%s", s1[]);

	printf("\nEnter three characters or less to check for substring in string 1: ");
	scanf("%s", s2[]);

My example that I was going to test was to test the word "CALL" and then s2 would be "ALL".

My problem is to figure out how to get the arrays to notice that the substring s2 is the same as s1. The same characters in the same pattern and direction.

Can anyone help me out, thanks!