Lines Matching defs:str
57 static int bt_hex_byte (char const *str);
274 bt_ntoa(bdaddr_t const *ba, char *str)
278 if (str == NULL)
279 str = buffer;
281 sprintf(str, "%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x",
284 return (str);
288 bt_aton(char const *str, bdaddr_t *ba)
295 for (i = 5, end = strchr(str, ':');
296 i > 0 && *str != '\0' && end != NULL;
297 i --, str = end + 1, end = strchr(str, ':')) {
298 switch (end - str) {
300 b = bt_hex_nibble(str[0]);
304 b = bt_hex_byte(str);
318 if (i != 0 || end != NULL || *str == 0)
321 switch (strlen(str)) {
323 b = bt_hex_nibble(str[0]);
327 b = bt_hex_byte(str);
344 bt_hex_byte(char const *str)
348 if ((n1 = bt_hex_nibble(str[0])) < 0)
351 if ((n2 = bt_hex_nibble(str[1])) < 0)