| 1 |
/***************************************************************************
|
| 2 |
test_bbs.c - description
|
| 3 |
-------------------
|
| 4 |
Copyright : (C) 2004-2025 by Leaflet
|
| 5 |
Email : leaflet@leafok.com
|
| 6 |
***************************************************************************/
|
| 7 |
|
| 8 |
/***************************************************************************
|
| 9 |
* *
|
| 10 |
* This program is free software; you can redistribute it and/or modify *
|
| 11 |
* it under the terms of the GNU General Public License as published by *
|
| 12 |
* the Free Software Foundation; either version 3 of the License, or *
|
| 13 |
* (at your option) any later version. *
|
| 14 |
* *
|
| 15 |
***************************************************************************/
|
| 16 |
|
| 17 |
#include "bbs.h"
|
| 18 |
#include <stdio.h>
|
| 19 |
|
| 20 |
int main(int argc, char *argv[])
|
| 21 |
{
|
| 22 |
int i;
|
| 23 |
|
| 24 |
const int user_points[] = {
|
| 25 |
-50, -1, 0, 1, 49, 50, 51, 499, 500, 501, 99999, 100000, 100001};
|
| 26 |
|
| 27 |
const int user_cnt = sizeof(user_points) / sizeof(int);
|
| 28 |
|
| 29 |
for (i = 0; i < user_cnt; i++)
|
| 30 |
{
|
| 31 |
printf("%10d\t\t%s\n", user_points[i], get_user_level_name(user_points[i]));
|
| 32 |
}
|
| 33 |
|
| 34 |
return 0;
|
| 35 |
}
|