Revision history of "C Language Practice: String Compare"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 17:32, 12 March 2022‎ Eric talk contribs‎ 886 bytes +886‎ Created page with "== Compare: If one string happens to match another string == * Step 1: Get a string compare function * Step 2: Call it and print it <syntaxhighlight lang="c" line style="border: 1px dashed red;"> #include <stdio.h> #include <stdlib.h> #include <string.h> int strcheck(char *str, char *check) { int ftime; int i, j; for (i = 0; str[i] != '\0'; i++) { for(j = 0; check[j] != '\0'; j++) { if (check[j] == str[i]) {..."