summaryrefslogtreecommitdiffhomepage
path: root/examples/splitstr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-09 20:10:53 +0100
committerTyge Løvset <[email protected]>2022-01-09 20:10:53 +0100
commit3a507cbc6abe0cfe80b49969ca1fa9c901533a78 (patch)
tree012c56768fa5f1c7386ce716b6f50399e0a9d564 /examples/splitstr.c
parent8a38affcb58be7eba502d32b78c84b376fe4fe45 (diff)
downloadSTC-modified-3a507cbc6abe0cfe80b49969ca1fa9c901533a78.tar.gz
STC-modified-3a507cbc6abe0cfe80b49969ca1fa9c901533a78.zip
Removed strings.h.
Diffstat (limited to 'examples/splitstr.c')
-rw-r--r--examples/splitstr.c7
1 files changed, 3 insertions, 4 deletions
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();