Automata Lab Assignment
Assignment Lab Assignment Lab Assignment -01 Write a C program for pattern Searching . C code: #include <stdio.h> #include <string.h> int match ( char [ ] , char [ ] ) ; int main ( ) { char a [ 100 ] , b [ 100 ] ; int position ; printf ( "Enter some text \n " ) ; gets ( a ) ; printf ( "Enter a string to find \n " ) ; gets ( b ) ; position = match ( a , b ) ; if ( position != - 1 ) { printf ( "Found at location: %d \n " , position + 1 ) ; } else { printf ( "Not found. \n " ) ; } return 0 ; } int match ( char text [ ] , char pattern [ ] ) { int c , d , e , text_length , ...