Hi
I am using strcmp as shown below.
I am debugging the values and which are coming same but still not getting that condition true.
const char opcode_read[2] = {'0', '1'};
rc = recvfrom(s, blk_receive_full, sizeof (blk_receive_full), 0,(struct sockaddr FAR *)&sin, &fromlength);
if(rc == -1){
printf("failed: recvfrom, \n No data received \n failed code: %d\n",WSAGetLastError());
cleanup();
exit(1);
}
memcpy(blk_receive_opcode, &blk_receive_full, 2);
if (strcmp(blk_receive_opcode, opcode_data) == 0) {
}