On 2017-01-30 at 09:33:28 +0100, Vadim Kochan <vadi...@gmail.com> wrote:
> Add str2fqdn for converting hostname string into DNS name notation:
> 
>     www.xxxx.yy.com -> 3www4xxxx2yy3com0
> 
> Returned string must be freed after use by the caller.
> 
> Signed-off-by: Vadim Kochan <vadi...@gmail.com>
> ---
>  str.c | 37 +++++++++++++++++++++++++++++++++++++
>  str.h |  1 +
>  2 files changed, 38 insertions(+)
> 
> diff --git a/str.c b/str.c
> index 532058a..1d3e7ac 100644
> --- a/str.c
> +++ b/str.c
> @@ -160,3 +160,40 @@ int str2mac(const char *str, uint8_t *mac, size_t len)
>  
>       return 0;
>  }
> +
> +char *str2fqdn(const char *str)

Couldn't it return const char *?

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to