I have written a function which searches for a given pattern in a given string and
returns yes if the pattern is in the function and no respectively. Plus it also returns the position from where the pattern occurred. e.g., string "hello world" contains pattern "wor" starting from position: 6.
I would be very glad if you could look at my code and provide me with feedback whether it could be more improved or optimized???? Thank you. (ps. the code is working of course, just I am interested in optimization if it is possible).
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)