···11+#include <stdio.h>
22+#include <stdlib.h>
33+#include <string.h>
44+55+66+int main(int argc, char* argv[]) {
77+ FILE* f = NULL;
88+ char* line = NULL;
99+ size_t size = 0;
1010+ ssize_t nread = 0;
1111+ int wrap_count = 0;
1212+ int n_lengths = 0;
1313+ int s_lengths = 0;
1414+ f = fopen(argv[1], "r");
1515+1616+1717+ while ((nread = getline(&line, &size, f)) != -1 ) {
1818+ if (!n_lengths) {
1919+ n_lengths = nread;
2020+ } else if (!s_lengths && n_lengths != nread) {
2121+ s_lengths = nread;
2222+ } // set long and short lenghts if wrapping is involved, for setting array sizes
2323+2424+ // lines will be written as they are to the char** lines pseudo matrix, and then transformed to int line by line if there is wrapping
2525+2626+2727+ printf("%s",line);
2828+ if (!strcspn(line, "*+")) {
2929+ wrap_count++;
3030+ }
3131+ }
3232+3333+3434+3535+ printf("wrap count is: %d",wrap_count);
3636+ free(f);
3737+ free(line);
3838+3939+4040+ return 0;
4141+}