Commit d724321f99bbaf024a5ec4bacf1520de3bc1ac87
1 parent
fb8977c5be
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
net: Improve documentation for string_to_ip()
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff
include/net.h
... | ... | @@ -845,9 +845,10 @@ |
845 | 845 | /** |
846 | 846 | * string_to_ip() - Convert a string to ip address |
847 | 847 | * |
848 | - * @s: String to conver, in the format format a.b.c.d, where each value is a | |
849 | - * decimal number from 0 to 255 | |
850 | - * @return IP address, or 0 if invalid | |
848 | + * Implemented in lib/net_utils.c (built unconditionally) | |
849 | + * | |
850 | + * @s: Input string to parse | |
851 | + * @return: in_addr struct containing the parsed IP address | |
851 | 852 | */ |
852 | 853 | struct in_addr string_to_ip(const char *s); |
853 | 854 |