How to validate host name \ domain name in Linux - C++
How can 开发者_开发技巧I validate host name \ domain name in Linux, C++?
In Windows I use for this purpose DnsValidateName - is there a good replacement for that in Linux GCC?
Thank you.
Well you could use some reqular expressions. Take one of these proposed here with some regex library.
精彩评论