/***************************************************************************
 *
 * $Source: $
 * $Date: $
 * $Revision: $
 * $State: $
 * $Author: $
 *
 ***************************************************************************/  

#include <stdlib.h>
#include <unistd.h>

static int id;

long int
gethostid(void)
{
  const char *address;

  if (!id)
    {
      address = getenv("Inet$LocalAddr");
      id = atoi(address);
    }

  return id;
}


int
sethostid (long int __id)
{
   id = __id;
   return 0;
}

