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

Annotation of /lbbs/src/test_bbs.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Tue Nov 4 13:49:51 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.2: +7 -15 lines
Content type: text/x-csrc
Update file header information comments

1 sysadm 1.3 /* SPDX-License-Identifier: GPL-3.0-or-later */
2     /*
3     * test_bbs
4     * - tester for BBS related common functions
5     *
6     * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
7     */
8 sysadm 1.1
9     #include "bbs.h"
10     #include <stdio.h>
11    
12     int main(int argc, char *argv[])
13     {
14     int i;
15 sysadm 1.2 int user_level;
16 sysadm 1.1
17     const int user_points[] = {
18     -50, -1, 0, 1, 49, 50, 51, 499, 500, 501, 99999, 100000, 100001};
19    
20     const int user_cnt = sizeof(user_points) / sizeof(int);
21    
22     for (i = 0; i < user_cnt; i++)
23     {
24 sysadm 1.2 user_level = get_user_level(user_points[i]);
25     printf("%10d\t%d\t%s\n", user_points[i], user_level, get_user_level_name(user_level));
26 sysadm 1.1 }
27    
28     return 0;
29     }

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