From 5881b8c79e89742a7ea6f9d1716b7e63fbe5686a Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 21 Feb 2015 12:44:47 +0000 Subject: strcmp.c --- strcmp.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 strcmp.c (limited to 'strcmp.c') 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 +#include +#include + +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; +} -- cgit v1.2.3-54-g00ecf