Hello there, I am programming Arduino board in Wiring language (C).
I want to use unsigned long array and I want to check if value (element) exists in array.

I have tried solution from: C - If value in array - Stack Overflow that was created for data type float.
But I am unable to get it running for unsigned long data type...

Can somebody help me please what to edit?
Friend told me to don't divide arrays.... But idk why, when for float it was working correctly. I want to use like 6 or 10 values there in array. Is there some other method that I can use that is fast enough?

My original code for Arduino (setup is working like main in pure C):
arrays - Pastebin.com
Output in UART (Serial monitor):
I am awaiting output "ZHODUJE SA", because entry argument (value) is in array... But output is like it is not there.. int returned 0.
Is value in array?-jwqb3tx-png