Created
February 9, 2023 03:53
-
-
Save eqdw/9d09c89c6a6edbd8f56df32f96019e0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while(s->string[i] != '\0') { | |
newStringData[i] = s->string[i]; | |
i++; | |
} | |
//strcpy(newStringData, s->string); | |
// copy over the null terminator + the checksum value | |
for(int j=0;j<5;j++){ | |
newStringData[i+j] = s->string[i+j]; | |
} | |
// replace the above with | |
while(i < len + 5) { | |
newStringData[i] = s->string[i]; | |
i++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment