diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-21 12:22:06 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-21 12:22:06 +0100 |
commit | 54e90f75203bbf40ec6ac6dd09227e2c6f97cc62 (patch) | |
tree | 1f6074e47a2e0477b697bbcec2c52128bd652657 /src/string_vec.c | |
parent | c0cd4cdf78886040528b16fad084a14165a16384 (diff) |
Add various command line arguments.
There are too many really to use single-character args, so the next step
should be a config file.
Diffstat (limited to 'src/string_vec.c')
-rw-r--r-- | src/string_vec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string_vec.c b/src/string_vec.c index e55dea4..82b86e1 100644 --- a/src/string_vec.c +++ b/src/string_vec.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE /* Required for strcasestr */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -100,7 +101,7 @@ struct string_vec string_vec_filter( { struct string_vec filt = string_vec_create(); for (size_t i = 0; i < vec->count; i++) { - if (strstr(vec->buf[i], substr) != NULL) { + if (strcasestr(vec->buf[i], substr) != NULL) { string_vec_add(&filt, vec->buf[i]); } } |