Back to index

glibc  2.9
nis_domain_of.c File Reference
#include <rpcsvc/nis.h>

Go to the source code of this file.


nis_name nis_domain_of (const_nis_name name)
const_nis_name __nis_domain_of (const_nis_name name)

Function Documentation

Definition at line 31 of file nis_domain_of.c.

  const_nis_name cptr = strchr (name, '.');

  if (cptr == NULL)
    return "";

  if (*++cptr == '\0')
    return ".";

  return cptr;

Here is the caller graph for this function:

Definition at line 23 of file nis_domain_of.c.

  static char result[NIS_MAXNAMELEN + 1];

  return nis_domain_of_r (name, result, NIS_MAXNAMELEN);

Here is the call graph for this function: