Date: Sat, 4 Apr 1998 00:28:16 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: current@FreeBSD.ORG Subject: Another problem with getnetent(3)! Message-ID: <199804040028.RAA13922@usr06.primenet.com>
next in thread | raw e-mail | index | archive | help
Apparently, there is another problem. If I amend the previous code with: ... char **pp; while( ( nep = getnetent()) != NULL) { ... for( pp = nep->n_aliases; *pp != NULL; pp++) { printf( "alias %s\n", *pp); } printf( "\n"); } If I don't have an alias, then the last thing on the line (the IP address) is erroneously processed as an alias. This is wrong. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804040028.RAA13922>