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

Diff of /lbbs/src/test_lml.c

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

Revision 1.10 by sysadm, Wed Jul 2 04:17:33 2025 UTC Revision 1.11 by sysadm, Tue Sep 30 03:02:06 2025 UTC
# Line 58  int main(int argc, char *argv[]) Line 58  int main(int argc, char *argv[])
58          log_common_redir(STDOUT_FILENO);          log_common_redir(STDOUT_FILENO);
59          log_error_redir(STDERR_FILENO);          log_error_redir(STDERR_FILENO);
60    
61            printf("Test #1: lml_tag = 1\n");
62          for (i = 0; i < str_cnt; i++)          for (i = 0; i < str_cnt; i++)
63          {          {
64                  j = lml_plain(str_in[i], str_out_buf, sizeof(str_out_buf));                  j = lml_plain(str_in[i], str_out_buf, sizeof(str_out_buf), 1);
65    
66                  printf("Input(len=%ld): %s\nOutput(len=%d): %s\n", strlen(str_in[i]), str_in[i], j, str_out_buf);                  printf("Input(len=%ld): %s\nOutput(len=%d): %s\n", strlen(str_in[i]), str_in[i], j, str_out_buf);
67          }          }
68            printf("Test #1: Done\n");
69    
70            printf("Test #2: lml_tag = 0\n");
71            for (i = 0; i < str_cnt; i++)
72            {
73                    j = lml_plain(str_in[i], str_out_buf, sizeof(str_out_buf), 0);
74    
75                    printf("Input(len=%ld): %s\nOutput(len=%d): %s\n", strlen(str_in[i]), str_in[i], j, str_out_buf);
76            }
77            printf("Test #2: Done\n");
78    
79          log_end();          log_end();
80    


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

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