PORT_MAX
char portstr[PORT_MAX];
char *portlist[PORT_MAX+1];
port = strtoi(portstr, NULL, 0, 1, PORT_MAX, &errnum);