diff options
| author | Tyge Løvset <[email protected]> | 2022-01-09 20:10:53 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-01-09 20:10:53 +0100 |
| commit | 3a507cbc6abe0cfe80b49969ca1fa9c901533a78 (patch) | |
| tree | 012c56768fa5f1c7386ce716b6f50399e0a9d564 /examples | |
| parent | 8a38affcb58be7eba502d32b78c84b376fe4fe45 (diff) | |
| download | STC-modified-3a507cbc6abe0cfe80b49969ca1fa9c901533a78.tar.gz STC-modified-3a507cbc6abe0cfe80b49969ca1fa9c901533a78.zip | |
Removed strings.h.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/regex_match.c | 2 | ||||
| -rw-r--r-- | examples/splitstr.c | 7 | ||||
| -rw-r--r-- | examples/sview_split.c | 3 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/regex_match.c b/examples/regex_match.c index 5e9775b4..887f4ddf 100644 --- a/examples/regex_match.c +++ b/examples/regex_match.c @@ -25,7 +25,7 @@ int main() csview sv = {s, 0};
while (cregex_find_next_v(re, s, &sv)) {
- printf(c_PRIsv " | ", c_ARGsv(sv));
+ printf(c_PRIsv " ; ", c_ARGsv(sv));
}
puts("");
}
diff --git a/examples/splitstr.c b/examples/splitstr.c index db46eaed..695e7595 100644 --- a/examples/splitstr.c +++ b/examples/splitstr.c @@ -1,4 +1,6 @@ -#include <stc/strings.h>
+#define i_val_str
+#include <stc/cvec.h>
+#include <stc/csview.h>
void print_split(csview str, csview sep)
{
@@ -10,9 +12,6 @@ void print_split(csview str, csview sep) }
}
-#define i_val_str
-#include <stc/cvec.h>
-
cvec_str string_split(csview str, csview sep)
{
cvec_str vec = cvec_str_init();
diff --git a/examples/sview_split.c b/examples/sview_split.c index 22d94f23..1c29240b 100644 --- a/examples/sview_split.c +++ b/examples/sview_split.c @@ -1,4 +1,5 @@ -#include <stc/strings.h>
+#include <stc/cstr.h>
+#include <stc/csview.h>
int main()
{
|
