1 | /*
2 | * this file gutted by nw for njudge 0.8.2. I don't think any serious
3 | * copyright claim can be made to what's left. Thus this file is
4 | * in the public domain.
5 | */
6 |
7 | #include <stdio.h>
8 | #include <stdlib.h>
9 |
10 | #include "config.h"
11 | #include "dip.h"
12 | #include "functions.h"
13 |
14 | void version(FILE * rfp)
15 | {
16 | int ngames, mgames, muser;
17 | ngames = countgames();
18 | muser = MAXUSER;
19 | mgames = MAXGAMES;
20 |
21 | fprintf(rfp, "Current version is %s %s\n\n", PACKAGE, VERSION);
22 | fprintf(rfp, "%d users registered, maximum is %d\n", nded, muser);
23 | fprintf(rfp, "%d games running, maximum is %d\n", ngames, mgames);
24 | fprintf(rfp,"\n");
25 | }