File: cmdversion.c

package info (click to toggle)
xshipwars 1.32-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 17,176 kB
  • ctags: 6,357
  • sloc: ansic: 157,152; makefile: 226; sh: 75
file content (22 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "swserv.h"


/*
 *      Prints version number of the program to connection.
 */
int CmdVersion(int condescriptor, char *arg)
{
        char sndbuf[CS_DATA_MAX_LEN];


        /* Print version to condescriptor. */
        sprintf(sndbuf,
            "%s - Version %s.",
            PROG_NAME,
            PROG_VERSION
        );
        NetSendLiveMessage(condescriptor, sndbuf);


        return(0);
}