diff options
Diffstat (limited to 'examples/regex2.c')
| -rw-r--r-- | examples/regex2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/regex2.c b/examples/regex2.c index d27b0406..1a8ac31d 100644 --- a/examples/regex2.c +++ b/examples/regex2.c @@ -1,5 +1,4 @@ #include <stc/cregex.h> -#include <stc/csview.h> #include <stc/cstr.h> int main() @@ -24,8 +23,7 @@ int main() { c_forrange (j, cregex_captures(re)) { - csview cap = {m[j].str, m[j].len}; - printf(" submatch %" PRIuMAX ": " c_PRIsv "\n", j, c_ARGsv(cap)); + printf(" submatch %" PRIuMAX ": " c_PRIsv "\n", j, c_ARGsv(m[j])); } puts(""); } |
