gCAD3D 2.40
byteorder.c File Reference

read short,long from BigEndian/LittleEndian More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/byteorder.h"

Functions

int CBO_close ()
 
int CBO_open (char *fnam)
 
int CBO_read (void *po, int bNr)
 
unsigned short CBO_r_ui2 ()
 
unsigned int CBO_r_ui4 ()
 
int CBO_r_i4 ()
 

Variables

static FILE * CBO_fp = NULL
 

Detailed Description

read short,long from BigEndian/LittleEndian

=====================================================
List_functions_start:
CBO_r_i2 read signed short (16 bit)
CBO_r_ui2 read unsigned short (16 bit, WORD)
CBO_r_i4 read signed long (32 bit)
CBO_r_ui4 read unsigned long (32 bit, DWORD)
List_functions_end:
=====================================================

Function Documentation

int CBO_close ( )
int CBO_open ( char *  fnam)
int CBO_read ( void *  po,
int  bNr 
)
unsigned short CBO_r_ui2 ( )
unsigned int CBO_r_ui4 ( )
int CBO_r_i4 ( )

Variable Documentation

FILE* CBO_fp = NULL
static