Windows 11 Posted March 9 Posted March 9 I cannot access the functionality from the implementation of a function similar to the code below in Windows 11 Notepad. I would expect such a function to be implemented in a basic text editor:#include #include void replace (char text[], char find[], char replace) { for (int i = 0; i < strlen(text); i++) { int Condition = (text[i] == replace[i]) && (i < strlen(text) - strlen(find)); int Count = 0; char replacedText = (char*)malloc(strlen(replace)*sizeof(char)); if (replacedText == NULL) { replacedText = (char*)malloc(strlen(replace)*sizeof(char)); } while (Condition &View the full article Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.