Lines Matching refs:line_ptr
96 char *line_ptr;
99 line_ptr = line + strspn(line, " \t");
100 if ((line_ptr[0] == '#') || (line_ptr[0] == '\n')) {
104 name_length = strcspn(line_ptr, " \t");
106 ch->ifname = xstrndup(line_ptr, name_length);
110 line_ptr += name_length;
111 line_ptr += strspn(line_ptr, " \t");
112 name_length = strspn(line_ptr, "0123456789ABCDEFabcdef:");
113 line_ptr[name_length] = '\0';
114 ch->mac = cc_macaddr(line_ptr);