MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lookup_media_word

Function lookup_media_word

tools/ifconfig/ifmedia.c:605–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605static int
606lookup_media_word(struct ifmedia_description *desc, const char *val)
607{
608
609 for (; desc->ifmt_string != NULL; desc++)
610 if (strcasecmp(desc->ifmt_string, val) == 0)
611 return (desc->ifmt_word);
612
613 return (-1);
614}
615
616static struct ifmedia_description *get_toptype_desc(int ifmw)
617{

Callers 3

get_media_subtypeFunction · 0.85
get_media_modeFunction · 0.85
get_media_optionsFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected