ns_parserr() and friends are not portable, so implement our own trivial parser instead.

I looked to the glibc source for inspiration and checked everything with
the RFC, so it is hopefully correct.
1 file changed