diff options
Diffstat (limited to 'src/io/text.c')
-rw-r--r-- | src/io/text.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/io/text.c b/src/io/text.c new file mode 100644 index 0000000..a035cc5 --- /dev/null +++ b/src/io/text.c @@ -0,0 +1,10 @@ +#include "text.h" + +void print_pattern_text(FILE *out, struct print_params params, struct pattern *pattern) +{ + for (int i = 0; i < pattern->length; i++) + { + fprintf(out, "%d,", pattern_point_to_index(pattern, i)); + } + fprintf(out, "\n"); +}
\ No newline at end of file |