#include #include #define BUF_SZ_256 256 #define BUF_SZ_512 512 #define BUF_SZ_1 1024 #define BUF_SZ_2 2048 #define BUF_SZ_4 4096 #define BUF_SZ_8 8192 int count_lines_in_file(char filename[], uint64_t *lines); int count_lines_in_file_posix(char filename[], size_t *lines); void confirm(); int choice(); void shuffle(char arr[], int n); int startmode(char filename[]); int get_line(char filename[], long focus, char **line, size_t *start); int editmode(char filename[], long focus); int new_line(char filename[], long new_line_pos_temp); int remove_line_contents(char filename[], long focus); int delete_specified_newline(char filename[], long focus);