commp_atoui
extern int commp_atoui(const char *, const char *, uint_t *);
if (commp_atoui(begin, current, &new_media->m_port) != 0)