This comment has been removed by the author.
I think you forgot add the following if statement soon as it corrected the offset to next to the last char of string. So add this... if ((unsigned)*strOffset > strlen(str)) { *strOffset = strlen(str); if (IsTextEditor){ key=0; done=1; } }
hey...thank you Deva and i am still trying to work it out.
Hello Deva...are you here? In 4.18, why the test didnt allow me to pass after i pressed the HOME key?
Sorry, just noticed... next time email me @ tvirutthasalam@learn.senecac.on.ca, Hope you did well.
This comment has been removed by the author.
ReplyDeleteI think you forgot add the following if statement soon as it corrected the offset to next to the last char of string. So add this...
ReplyDeleteif ((unsigned)*strOffset > strlen(str)) {
*strOffset = strlen(str);
if (IsTextEditor){
key=0;
done=1;
}
}
hey...thank you Deva and i am still trying to work it out.
DeleteHello Deva...are you here? In 4.18, why the test didnt allow me to pass after i pressed the HOME key?
DeleteSorry, just noticed... next time email me @ tvirutthasalam@learn.senecac.on.ca, Hope you did well.
Delete