--- lbbs/include/str_process.h 2025/05/05 14:27:57 1.2 +++ lbbs/include/str_process.h 2025/06/14 02:58:11 1.9 @@ -9,7 +9,7 @@ * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * + * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ @@ -19,8 +19,12 @@ #include -extern unsigned int split_line(const char *buffer, int max_len, int *p_eol); +#define MAX_SPLIT_FILE_LINES 65536 -extern unsigned int split_file_lines(FILE *fin, int max_len, long *p_line_offsets, int max_line_cnt); +extern int split_line(const char *buffer, int max_display_len, int *p_eol, int *p_display_len); + +extern long split_data_lines(const char *p_buf, int max_display_len, long *p_line_offsets, long line_offsets_count); + +extern int ctrl_seq_filter(char *buffer); #endif //_STR_PROCESS_H_