add more string functions for dictionary features

This commit is contained in:
vanhauser-thc
2021-07-30 08:33:18 +02:00
parent bcdb69289f
commit c3fbf5dca3
6 changed files with 150 additions and 24 deletions

View File

@ -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)