/[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.13 by sysadm, Sun Oct 5 07:38:51 2025 UTC Revision 1.14 by sysadm, Sat Oct 18 13:22:52 2025 UTC
# Line 62  int main(int argc, char *argv[]) Line 62  int main(int argc, char *argv[])
62          printf("Test #1: lml_tag = 1\n");          printf("Test #1: lml_tag = 1\n");
63          for (i = 0; i < str_cnt; i++)          for (i = 0; i < str_cnt; i++)
64          {          {
65                  j = lml_render(str_in[i], str_out_buf, sizeof(str_out_buf), 1);                  j = lml_render(str_in[i], str_out_buf, sizeof(str_out_buf), 0);
66    
67                  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);
68          }          }
# Line 71  int main(int argc, char *argv[]) Line 71  int main(int argc, char *argv[])
71          printf("Test #2: lml_tag = 0\n");          printf("Test #2: lml_tag = 0\n");
72          for (i = 0; i < str_cnt; i++)          for (i = 0; i < str_cnt; i++)
73          {          {
74                  j = lml_render(str_in[i], str_out_buf, sizeof(str_out_buf), 0);                  j = lml_render(str_in[i], str_out_buf, sizeof(str_out_buf), 1);
75    
76                  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);
77          }          }


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

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