C program with a function which checks if integer A contains integer B ( let's say, A=2345, B=4, in which case it int A does contain int B ) :     #define _CRT_SECURE_NO_WARNINGS
    #include <stdio.h>
    
    int funkcija(int num, int num2)
    
    {
    
    	int doesContain;
    
    
    
    	if (doesContain == 1)
    		return 1;
    	else
    		return 0;
    
    
    }
    
    int main(void)
    
    {
    
    	int num, num2;
    
    	scanf("%d", num);
    	scanf("%d", num2);
    
    	printf("%d", funkcija(num, num2));
    
    
    	return 0;
    
    }

So basically, I need to make a function which takes number 1 and number 2, checks if number2 is in number1, then returns 0 or 1.

So for example, if number 1 is let's say '2452325678', and number 2 is '7', number 1 DOES contain number 2 and the statement is true. But if num1 is '2134' and num2 is '5', the statement is false.

It needs to be done PRIMITIVELY, without arrays and whatnot. The professor is basically testing your ability to make an algorithm, and considering I wasn't @ the last lecture due to illness, and I have practice work tomorrow which I need to pass, you can see why I'm in a pickle here.

I need any help I can get with the algorithm, I myself am completely lost on how to do it, thanks!