diff options
-rw-r--r-- | strcmp.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/strcmp.c b/strcmp.c new file mode 100644 index 0000000..7633d80 --- /dev/null +++ b/strcmp.c @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +int main(void) +{ + char *input; + + scanf("%ms", &input); + + if (strcmp(input, "Test") == 0) + printf("Match\n"); + else + printf("Fail\n"); + + free(input); + + return EXIT_SUCCESS; +} |