This example shows the C code for a simple scalar function that finds a specified pattern in a string. The function allows a maximum length of 500 characters for the string and the test pattern. The result is a CHAR value of 'T' for TRUE and 'F' for FALSE.