R
ranjeet.gupta
Dear All
Please check the below code:
UINT8 MsgLength = 0;
MsgLength = strlen((char *)msg);
if ( MsgLength == 0 || MsgLength > 64) {
//Flow A
} else {
//Flow B
}
do you find any issue with the typecasting of the message, will it
create any serious
problem ? As if now I can say that when the message length is more then
256 then it will
fail, apart form this, do any compiler may fail ? looking forward for
the disscussion on this.
Thanks In Advance
Ranjeet Gupta
Please check the below code:
UINT8 MsgLength = 0;
MsgLength = strlen((char *)msg);
if ( MsgLength == 0 || MsgLength > 64) {
//Flow A
} else {
//Flow B
}
do you find any issue with the typecasting of the message, will it
create any serious
problem ? As if now I can say that when the message length is more then
256 then it will
fail, apart form this, do any compiler may fail ? looking forward for
the disscussion on this.
Thanks In Advance
Ranjeet Gupta