Lines Matching refs:str
7 static __inline__ int do_digit(char *str, u_int32_t addr, u_int32_t scale, size_t *pos, size_t len) in do_digit() argument
16 *str = tmp + 'A' - 10; in do_digit()
18 *str = tmp + '0'; in do_digit()
24 static const char *ipx_ntop1(const struct ipx_addr *addr, char *str, size_t len) in ipx_ntop1() argument
30 return str; in ipx_ntop1()
33 if (do_digit(str + pos, ntohl(addr->ipx_net), i, &pos, len)) in ipx_ntop1()
34 return str; in ipx_ntop1()
37 return str; in ipx_ntop1()
39 *(str + pos) = '.'; in ipx_ntop1()
43 if (do_digit(str + pos, addr->ipx_node[i], 1, &pos, len)) in ipx_ntop1()
44 return str; in ipx_ntop1()
45 if (do_digit(str + pos, addr->ipx_node[i], 0, &pos, len)) in ipx_ntop1()
46 return str; in ipx_ntop1()
50 return str; in ipx_ntop1()
52 *(str + pos) = 0; in ipx_ntop1()
54 return str; in ipx_ntop1()
58 const char *ipx_ntop(int af, const void *addr, char *str, size_t len) in ipx_ntop() argument
63 return ipx_ntop1((struct ipx_addr *)addr, str, len); in ipx_ntop()