str: Add function for converting string into DNS name
commita2524f2bc9c0e8651221ba88b6013db55cec0190
authorVadim Kochan <vadim4j@gmail.com>
Thu, 1 Jun 2017 10:12:27 +0000 (1 13:12 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 2 Jun 2017 07:15:21 +0000 (2 09:15 +0200)
tree80cca6f9742519e18bbad787042069b8e9ad8810
parent906cb247a831e37665a19e2c6b41b7cfd4c6621b
str: Add function for converting string into DNS name

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 <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
str.c
str.h