diff options
| author | Sopár Adrián <dev.adrian.sopar@protonmail.com> | 2022-07-05 23:02:16 +0200 |
|---|---|---|
| committer | Sopár Adrián <dev.adrian.sopar@protonmail.com> | 2022-07-05 23:02:16 +0200 |
| commit | c5cd2b2443dc48aaeb61feac4a96071c7bc9790e (patch) | |
| tree | 38f611224caf6f3e15b7121b06c1b1e9c5e129b3 /src/io/text.c | |
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 |
