From c3fbf5dca309e80e91f9bee9ff6d13f6aa240427 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Fri, 30 Jul 2021 08:33:18 +0200 Subject: add more string functions for dictionary features --- test/test-compcov.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test-compcov.c') diff --git a/test/test-compcov.c b/test/test-compcov.c index 4959c39c..ae63ca45 100644 --- a/test/test-compcov.c +++ b/test/test-compcov.c @@ -29,6 +29,8 @@ int main(int argc, char **argv) { printf("your string was APRI\n"); else if (strcasecmp(input, "Kiwi") == 0) printf("your string was Kiwi\n"); + else if (strstr(input, "tsala") == 0) + printf("your string is a fruit salad\n"); else if (strncasecmp(input, "avocado", 9) == 0) printf("your string was avocado\n"); else if (strncasecmp(input, "Grapes", argc > 2 ? atoi(argv[2]) : 3) == 0) -- cgit 1.4.1