#include "readlines.h" #include int main(int argc, char ** argv){ if(argc < 3){ printf("Usage: %s filename minimum_line_length\n"); return 1; } auto lines = readlines(argv[1]); int minlen = atoi(argv[2]); for(auto l : lines){ if(l.length() >= minlen) printf("%d: %s\n", l.length(), l.c_str()); } return 0; }