/[LeafOK_CVS]/lbbs/src/str_process.c
ViewVC logotype

Diff of /lbbs/src/str_process.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.17 by sysadm, Mon Jun 16 01:36:56 2025 UTC Revision 1.19 by sysadm, Wed Jul 2 03:08:10 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
 #include "str_process.h"  
17  #include "common.h"  #include "common.h"
18  #include "log.h"  #include "log.h"
19    #include "str_process.h"
20  #include <stdio.h>  #include <stdio.h>
21  #include <string.h>  #include <string.h>
22    
# Line 76  int split_line(const char *buffer, int m Line 76  int split_line(const char *buffer, int m
76          return i;          return i;
77  }  }
78    
79  long split_data_lines(const char *p_buf, int max_display_len, long *p_line_offsets, long line_offsets_count, int skip_ctrl_seq)  long split_data_lines(const char *p_buf, int max_display_len, long *p_line_offsets, long line_offsets_count,
80                                              int skip_ctrl_seq, int *p_line_widths)
81  {  {
82          int line_cnt = 0;          int line_cnt = 0;
83          int len;          int len;
# Line 89  long split_data_lines(const char *p_buf, Line 90  long split_data_lines(const char *p_buf,
90          {          {
91                  len = split_line(p_buf, max_display_len, &end_of_line, &display_len, skip_ctrl_seq);                  len = split_line(p_buf, max_display_len, &end_of_line, &display_len, skip_ctrl_seq);
92    
93                    if (p_line_widths)
94                    {
95                            p_line_widths[line_cnt] = display_len;
96                    }
97    
98                  // Exceed max_line_cnt                  // Exceed max_line_cnt
99                  if (line_cnt + 1 >= line_offsets_count)                  if (line_cnt + 1 >= line_offsets_count)
100                  {                  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1