comparison lib/getdomainname.c @ 4734:e73a97963451

Fix comment.
author Bruno Haible <bruno@clisp.org>
date Thu, 25 Sep 2003 11:01:25 +0000
parents 3f6a23a84d27
children a48fb0e98c8c
comparison
equal deleted inserted replaced
4733:dbe204edd79d 4734:e73a97963451
28 #include <errno.h> 28 #include <errno.h>
29 29
30 /* Return the NIS domain name of the machine. 30 /* Return the NIS domain name of the machine.
31 WARNING! The NIS domain name is unrelated to the fully qualified host name 31 WARNING! The NIS domain name is unrelated to the fully qualified host name
32 of the machine. It is also unrelated to email addresses. 32 of the machine. It is also unrelated to email addresses.
33 WARNING! The NIS domain name is usually the empty string when not using NIS. 33 WARNING! The NIS domain name is usually the empty string or "(none)" when
34 not using NIS.
34 35
35 Put up to LEN bytes of the NIS domain name into NAME. 36 Put up to LEN bytes of the NIS domain name into NAME.
36 Null terminate it if the name is shorter than LEN. 37 Null terminate it if the name is shorter than LEN.
37 If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. 38 If the NIS domain name is longer than LEN, set errno = EINVAL and return -1.
38 Return 0 if successful, otherwise set errno and return -1. */ 39 Return 0 if successful, otherwise set errno and return -1. */