I am experiencing problem with following statement
int comp = strncmp((array+middle),target,strlen(target));
I am trying to compare the target (player name) with the player name at array+middle position
However, by using strncmp, I do not get expected result because of 'strlen(target)'
array+middle --> super_player
target --> su
this two are not same but in fact the statement return 0 since I am only comparing su with super_player
I am wondering how can I compare su with the entire "super_player" instead of su
This statement is for comparison in my binary search statement.