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

Diff of /lbbs/src/test_bwf.c

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

Revision 1.1 by sysadm, Fri Nov 7 13:56:49 2025 UTC Revision 1.4 by sysadm, Sat Jan 3 10:27:14 2026 UTC
# Line 3  Line 3 
3   * test_bwf   * test_bwf
4   *   - tester for bad words filter   *   - tester for bad words filter
5   *   *
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2026  Leaflet <leaflet@leafok.com>
7   */   */
8    
9    #ifdef HAVE_CONFIG_H
10    #include "config.h"
11    #endif
12    
13  #include "bwf.h"  #include "bwf.h"
14  #include "log.h"  #include "log.h"
15  #include <stdio.h>  #include <stdio.h>
# Line 51  int main(int argc, char *argv[]) Line 55  int main(int argc, char *argv[])
55                  return -2;                  return -2;
56          }          }
57    
58            if (bwf_compile() < 0)
59            {
60                    return -2;
61            }
62    
63          for (i = 0; i < str_cnt; i++)          for (i = 0; i < str_cnt; i++)
64          {          {
65                  strncpy(str, str_in[i], sizeof(str) - 1);                  strncpy(str, str_in[i], sizeof(str) - 1);
# Line 73  int main(int argc, char *argv[]) Line 82  int main(int argc, char *argv[])
82                  }                  }
83          }          }
84    
85          bwf_unload();          bwf_cleanup();
86    
87          log_end();          log_end();
88    


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

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