You did not show the definition of
but I assuming it is an array of
. In either event, your
field of the struct is an
. You cannot use
to compare these two dissimilar types.
Either store the data from your file as chars or convert the incoming buffer contents to an int. Your choice.
int p = atoi(buffer);
if (p == inputQ[i].name)