File: cmdconnect.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 (27 lines) | stat: -rw-r--r-- 443 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
23
24
25
26
27
#include "xsw.h"
#include "univlist.h"


int CmdConnect(char *arg)
{
        int status;


        /* If no argument, then map universe list window. */
        if(arg == NULL)
        {
            UnivListMap();
            return(0);
        }
        else if(strlen(arg) < 1)
        {
            UnivListMap();
            return(0);
        }

        /* Do connection. */
        status = XSWDoConnect(arg);


        return(status);
}