GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cube_io.c File Reference
#include <stdlib.h>
#include "viz.h"
Include dependency graph for cube_io.c:

Go to the source code of this file.

Functions

int write_cube (Cube_data *Cube, int cur_x, file_info *headfax)
 
int write_cube_buffer (unsigned char *Buffer, int size, int cur_x, file_info *headfax)
 
int read_cube (Cube_data *Cube, file_info *headfax)
 
int my_fread (char *buf, int size, int cnt, FILE *fp)
 
int reset_reads (file_info *headfax)
 
int new_dspf (file_info *hfax)
 

Function Documentation

int my_fread ( char *  buf,
int  size,
int  cnt,
FILE *  fp 
)

Definition at line 266 of file cube_io.c.

References struct_copy().

Referenced by read_cube().

int new_dspf ( file_info hfax)

Definition at line 294 of file cube_io.c.

References file_info::Dataoff, and file_info::dspfinfp.

int reset_reads ( file_info headfax)

Definition at line 284 of file cube_io.c.

References file_info::Dataoff, and file_info::dspfinfp.

int write_cube_buffer ( unsigned char *  Buffer,
int  size,
int  cur_x,
file_info headfax 
)

Definition at line 92 of file cube_io.c.

References file_info::dspfoutfp, and file_info::xdim.

Referenced by write_cube().