xdr.c File Reference

#include "common.h"
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <strings.h>
#include "machine.h"
#include "bu.h"

Include dependency graph for xdr.c:

Go to the source code of this file.

Functions

unsigned short bu_gshort (const unsigned char *msgp)
unsigned long bu_glong (const unsigned char *msgp)
unsigned char * bu_pshort (register unsigned char *msgp, register int s)
unsigned char * bu_plong (register unsigned char *msgp, register long unsigned int l)


Detailed Description

Routines to implement an external data representation (XDR) compatible with the usual InterNet standards, e.g.: big-endian, twos-compliment fixed point, and IEEE floating point.

Routines to insert/extract short/long's into char arrays, independend of machine byte order and word-alignment. Uses encoding compatible with routines found in libpkg, and BSD system routines ntohl(), ntons(), ntohl(), ntohs().

Author:
Michael John Muuss
Source -
The U. S. Army Research Laboratory
Aberdeen Proving Ground, Maryland 21005-5068 USA

Definition in file xdr.c.


Generated on Mon Sep 18 01:25:04 2006 for BRL-CAD by  doxygen 1.4.6