Skip to content

Commit

Permalink
Fix documentation for return value of evutil_inet_pton()
Browse files Browse the repository at this point in the history
Fixes: #39
  • Loading branch information
azat committed Feb 18, 2024
1 parent ff17091 commit b25f133
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Ref5_evutil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@ AF_INET6, the string to parse in 'src', and 'dst' pointing to an in_addr
or an in_addr6 as appropriate.

The return value from evutil_inet_ntop() is NULL on failure and
otherwise points to dst. The return value from evutil_inet_pton() is 0
on success and -1 on failure.
otherwise points to dst. The return value from evutil_inet_pton() is 1
on success, -1 if af is not supported and 0 if src does not contain a character
string representing a valid network address in the specified address family.

.Interface
[code,C]
Expand Down

0 comments on commit b25f133

Please sign in to comment.