ishost
#define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-')
ishost(char *sys, char *rest)