putlong()

The putlong() call places long byte quantities into the byte stream.

Syntax

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

Parameters

l

msgp

Description

The putlong() call places long byte quantities into the byte stream or arbitrary byte boundaries.

The putlong() call is one of a group of calls that form the resolver, a set of functions that resolve 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 information.)

Related Calls


[Back: ntohs()]
[Next: putshort()]