summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-14 23:08:46 +0200
committerTyge Løvset <[email protected]>2021-09-14 23:08:46 +0200
commitd716acdc8289dd60c394c568b5ef3f88700a855c (patch)
tree217ae5f4589f352c764cd4c38743e7e5186a7220 /examples
parent8e2e792b2c3e1fa04a0ac67ea7d9010939ca8009 (diff)
downloadSTC-modified-d716acdc8289dd60c394c568b5ef3f88700a855c.tar.gz
STC-modified-d716acdc8289dd60c394c568b5ef3f88700a855c.zip
Fixed include structuring.
Diffstat (limited to 'examples')
-rw-r--r--examples/cstr_match.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/cstr_match.c b/examples/cstr_match.c
index a4dbe8d8..bb3a63fe 100644
--- a/examples/cstr_match.c
+++ b/examples/cstr_match.c
@@ -6,10 +6,10 @@ int main()
c_forvar (cstr ss = cstr_lit("The quick brown fox jumps over the lazy dog.JPG"), cstr_del(&ss)) {
size_t pos = cstr_find_n(ss, "brown", 0, 5);
printf("%zu [%s]\n", pos, pos == cstr_npos ? "<NULL>" : &ss.str[pos]);
- printf("iequals: %d\n", cstr_iequalto(ss, "the quick brown fox jumps over the lazy dog.jpg"));
- printf("icontains: %d\n", cstr_icontains(ss, "uMPS Ove"));
- printf("istarts_with: %d\n", cstr_istarts_with(ss, "The Quick Brown"));
- printf("iends_with: %d\n", cstr_iends_with(ss, ".Jpg"));
+ printf("equals: %d\n", cstr_equalto(ss, "The quick brown fox jumps over the lazy dog.JPG"));
+ printf("contains: %d\n", cstr_contains(ss, "umps ove"));
+ printf("starts_with: %d\n", cstr_starts_with(ss, "The quick brown"));
+ printf("ends_with: %d\n", cstr_ends_with(ss, ".jpg"));
printf("ends_with: %d\n", cstr_ends_with(ss, ".JPG"));
}
} \ No newline at end of file