I'm trying to use an array for function's input argument, when I call this function with a manual value, the function works good, but when I use an array with that value instead of the manual value, my function doesn't work correctly.
Example of my code:
Search("FileName","Word");
----------------------
Search("NotePad1","Hello"); >>> Work Correctly!
----------------------
But:
--------------------
char Word[25]={'H','e','l','l','o'};
Search("NotePad1",Word); >>>Doesn't Work! :-(
--------------------
char Word[25]={'H','e','l','l','o','\0'};