Do not do this:
March 4th, 2002
Do not do this:
size_t myLen = strlen(receivePtr);
*(receivePtr+myLen-2) = ‘\n’;
*(receivePtr+myLen-1) = ‘\0’;
I am currently a software engineer at Google, where as a member of the Android platform team I build frameworks and user interfaces.
The blog here at dsandler.org is mostly historical; you can find more recent posts on Google+.
Do not do this:
size_t myLen = strlen(receivePtr);
*(receivePtr+myLen-2) = ‘\n’;
*(receivePtr+myLen-1) = ‘\0’;