Hi, I want to compare two string and find out how much this two strings are similar.
strcmp is not a good idea I think.
for example we have 3 strings. I need to find out similarity of string 1 and 2 is higher or similarity of string 1 and 3. Any Idea?
I want this for comparing two packet's payload.
Do we have such compare function in c?
What I have tried:
string str1 = "I am string number one"
string str2 = "I am string number two"
string str3 = "this is string number 3"
similarity12 = compare(str1,str2);
similarity13 = compare(str1,str3);