convert.c File Reference

Routines to translate data formats. The data formats are:. More...

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

Include dependency graph for convert.c:

Go to the source code of this file.

Functions

int bu_cv_cookie (char *in)
void bu_cv_fmt_cookie (char *buf, size_t buflen, int cookie)
void bu_cv_pr_cookie (char *title, int cookie)
int cv (genptr_t out, char *outfmt, size_t size, genptr_t in, char *infmt, int count)
 convert from one format to another.
int bu_cv_optimize (register int cookie)
int bu_cv_itemlen (register int cookie)
int bu_cv_ntohss (register short int *out, size_t size, register genptr_t in, int count)
 Network TO Host Signed Short.
int bu_cv_ntohus (register short unsigned int *out, size_t size, register genptr_t in, int count)
int bu_cv_ntohsl (register long int *out, size_t size, register genptr_t in, int count)
int bu_cv_ntohul (register long unsigned int *out, size_t size, register genptr_t in, int count)
int bu_cv_htonss (genptr_t out, size_t size, register short int *in, int count)
int bu_cv_htonus (genptr_t out, size_t size, register short unsigned int *in, int count)
int bu_cv_htonsl (genptr_t out, size_t size, register long int *in, int count)
int bu_cv_htonul (genptr_t out, size_t size, register long unsigned int *in, int count)
int bu_cv_w_cookie (genptr_t out, int outcookie, size_t size, genptr_t in, int incookie, int count)
 convert with cookie


Detailed Description

Routines to translate data formats. The data formats are:.

The method of conversion is to convert up to double then back down the the expected output format.

Author:
Christopher T. Johnson
Source
The U. S. Army Research Laboratory
Aberdeen Proving Ground, Maryland 21005-5068 USA

Definition in file convert.c.


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