...
Code Block | ||
---|---|---|
| ||
int checkpass(char *password) {
if (strcmp(password, "pass") == 0) {
return 1;
}
}
/* ... */
if (checkpass(userinput)) {
printf("Success!\n");
}
|
This error is frequently diagnosed by compilers (see MSC00-C. Compile cleanly at high warning levels).
...