I have an array of structs, comprising the name of an application and the path
I am trying to write a function to search this and build a sub set based on the search string.
Eg, If the search string is "Fi"
Then it would match from the left hand side only, based on the first two characters
So matching entries would be
My biggest hurdle is my abysmal knowledge of string slicing functions and string comparison functions in C, and my googling efforts have been confusing at best.
Here is the skeleton of the function
length = strlen(searchString);
printf("Search string %s is %d characters long \n", searchString,length);
//comparison goes here
can anyone post some code to steer me in the right direction?
Hart Hill IT Ltd