gethostaddr

Returns the standard host address for the processor.

Format

#include  <socket.h>

int gethostaddr  (char *addr);

Arguments

addr
A pointer to the buffer in which the standard host address for the current processor is returned.

Description

This system call returns the standard host address for the current processor. The returned address is null-terminated. The addr parameter must point to at least 16 bytes of free space.

Host addresses are limited to 16 characters.

Return Values
Indicates success. 
-1  Indicates that an error has occurred and is further specified in the global errno. 


Previous Page | Next Page | Table of Contents | Index