[riot-notifications] [RIOT] posix: net_help: move inet_pton/inet_ntop completely to POSIX (#3612)

Martine Lenders notifications at github.com
Wed Sep 16 13:15:15 CEST 2015


> +/**
> + * @brief   Converts an IP address to its string representation
> + *
> + * @pre (af == AF_INET) || (af == AF_INET6)
> + *
> + * @param[in] af    Address family of @p src. Must be @ref AF_INET or @ref AF_INET6.
> + * @param[in] src   An IP address.
> + * @param[out] dst  The resulting string representation.
> + * @param[in] size  Length of @p result.
> + *
> + * @return  @p dst, on success
> + * @return  NULL, if @p size was smaller than needed
> + * @return  NULL, if @p src or @p dst was NULL
> + */
> +static inline const char *inet_ntop(int af, const void *restrict src, char *restrict dst,
> +                                    socklen_t size)

Merged

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3612/files#r39617314
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150916/0a06bec7/attachment.html>


More information about the notifications mailing list