fileio.c File Reference

#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "batch.h"

Go to the source code of this file.

Functions

char * getpgmhval (char *ptr, int *val)
int stricmp (const char *s1, const char *s2)
char * strupr (char *s1)
void * salloc (long AnzDerObj, USHORT ObjSize)
void sfree (void *ptr)
long FileCheck (char *fname, FILETYPE *ftyp, FILEHEAD *fhead, FILE **fh)
int FileRead (FILE *fh, char *buffer, long nbytes)
int FileWrite (char *fname, char *buffer, FILEHEAD *fhead)


Function Documentation

long FileCheck (  char *  fname,
FILETYPE *  ftyp,
FILEHEAD *  fhead,
FILE **  fh
) 
 

Definition at line 86 of file fileio.c.

References BYTFIL, CPXFIL, D2DFIL, DATFIL, DBLFIL, FLTFIL, getpgmhval(), PGMFIL, SEEK_SET, SHTFIL, SPEFIL, strupr(), XYCoord::x, FILEHEAD::xydim, and XYCoord::y.

Referenced by PrimitiveImExportFile::gnuRead().

int FileRead (  FILE *  fh,
char *  buffer,
long  nbytes
) 
 

Definition at line 232 of file fileio.c.

int FileWrite (  char *  fname,
char *  buffer,
FILEHEAD *  fhead
) 
 

Definition at line 257 of file fileio.c.

References BYTFIL, CPXFIL, DATFIL, DBLFIL, FLTFIL, PGMFIL, SHTFIL, strupr(), XYCoord::x, FILEHEAD::xydim, and XYCoord::y.

char * getpgmhval (  char *  ptr,
int *  val
) 
 

Definition at line 218 of file fileio.c.

Referenced by FileCheck().

void* salloc (  long  AnzDerObj,
USHORT  ObjSize
) 
 

Definition at line 43 of file fileio.c.

void sfree (  void *  ptr  ) 
 

Definition at line 73 of file fileio.c.

int stricmp (  const char *  s1,
const char *  s2
) 
 

Definition at line 24 of file fileio.c.

char* strupr (  char *  s1  ) 
 

Definition at line 37 of file fileio.c.

Referenced by FileCheck(), and FileWrite().


Generated on Sat Apr 1 09:04:51 2006 for GXSM by  doxygen 1.4.6