Lines Matching refs:str
251 * str: Pointer to a string which represents MAC address
258 int eth_pton(int af, const char *str, struct sockaddr_ll *ll)
275 if (sscanf(str, "%2x:%2x:%2x:%2x:%2x:%2x", &val[0], &val[1],
277 fprintf(stderr, "%s is not a valid MAC address", str);
320 * str : nano second value in character representation
327 int strtotimespec(const char *str, struct timespec *ts_p)
334 len = strlen(str);
337 strncpy(sec_str, str, len - 9);
342 nsec = strtoul(str + len - 9, NULL, 0);
344 nsec = strtoul(str, NULL, 0);