_getlong()

The _getlong() call retrieves long byte quantities.

Syntax

#include <sys\types.h>
#include <netinet\in.h>
#include <arpa\nameser.h>
#include <resolv.h>
u_long _getlong (msgp)
u_char *msgp;

Parameters

msgp

Description

The _getlong() call gets long quantities from the byte stream or arbitrary byte boundaries.

The _getlong() call is one of a group of calls that form the resolver, a set of functions that resolves domain names. Global information used by the resolver calls is kept in the _res data structure. The <RESOLV.H> file contains the _res structure definition. (See The _res Data Structure for more on the _res data structure.)

Return Values

The _getlong() call returns an unsigned long (32-bit) value.

Related Calls


[Back: gethostname()]
[Next: getnetbyaddr()]