Version: 8.3.0
libmesh5.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <ctype.h>
#include "libmesh5.h"
Include dependency graph for libmesh5.c:

Data Structures

struct  KwdSct
 
struct  GmfMshSct
 

Macros

#define Asc   1
 
#define Bin   2
 
#define MshFil   4
 
#define SolFil   8
 
#define MaxMsh   100
 
#define InfKwd   1
 
#define RegKwd   2
 
#define SolKwd   3
 
#define WrdSiz   4
 
#define BufSiz   10000
 

Functions

static void ScaWrd (GmfMshSct *, unsigned char *)
 
static void ScaDblWrd (GmfMshSct *, unsigned char *)
 
static void ScaBlk (GmfMshSct *, unsigned char *, int)
 
static long GetPos (GmfMshSct *)
 
static void RecWrd (GmfMshSct *, unsigned char *)
 
static void RecDblWrd (GmfMshSct *, unsigned char *)
 
static void RecBlk (GmfMshSct *, unsigned char *, int)
 
static void SetPos (GmfMshSct *, long)
 
static int ScaKwdTab (GmfMshSct *)
 
static void ExpFmt (GmfMshSct *, int)
 
static void ScaKwdHdr (GmfMshSct *, int)
 
int GmfOpenMesh (const char *FilNam, int mod,...)
 
int GmfCloseMesh (int MshIdx)
 
int GmfStatKwd (int MshIdx, int KwdCod,...)
 
int GmfGotoKwd (int MshIdx, int KwdCod)
 
int GmfSetKwd (int MshIdx, int KwdCod,...)
 
void GmfGetLin (int MshIdx, int KwdCod,...)
 
void GmfSetLin (int MshIdx, int KwdCod,...)
 
void GmfCpyLin (int InpIdx, int OutIdx, int KwdCod)
 

Variables

static int GmfIniFlg =0
 
static GmfMshSctGmfMshTab [100+1]
 
static const char * GmfKwdFmt [80+1][4]
 

Macro Definition Documentation

#define Bin   2

Referenced by GmfOpenMesh(), and GmfSetKwd().

#define BufSiz   10000

Referenced by RecBlk().

#define InfKwd   1

Referenced by ExpFmt(), and GmfSetKwd().

#define MaxMsh   100
#define MshFil   4

Referenced by GmfOpenMesh().

#define RegKwd   2

Referenced by ExpFmt().

#define SolFil   8

Referenced by GmfOpenMesh().

#define SolKwd   3
#define WrdSiz   4

Function Documentation

static long GetPos ( GmfMshSct msh)
static

References ScaDblWrd(), ScaWrd(), and GmfMshSct::ver.

Referenced by GmfOpenMesh(), and ScaKwdTab().

int GmfGotoKwd ( int  MshIdx,
int  KwdCod 
)
int GmfStatKwd ( int  MshIdx,
int  KwdCod,
  ... 
)
static void RecBlk ( GmfMshSct msh,
unsigned char *  blk,
int  siz 
)
static
static void RecDblWrd ( GmfMshSct msh,
unsigned char *  wrd 
)
static

References GmfMshSct::hdl, and WrdSiz.

Referenced by GmfCpyLin(), and SetPos().

static void RecWrd ( GmfMshSct msh,
unsigned char *  wrd 
)
static

References GmfMshSct::hdl, and WrdSiz.

Referenced by GmfCpyLin(), GmfOpenMesh(), GmfSetKwd(), and SetPos().

static void ScaBlk ( GmfMshSct msh,
unsigned char *  blk,
int  siz 
)
static

References GmfMshSct::cod, GmfMshSct::hdl, and WrdSiz.

Referenced by GmfGetLin().

static void ScaDblWrd ( GmfMshSct msh,
unsigned char *  wrd 
)
static

References GmfMshSct::cod, GmfMshSct::hdl, and WrdSiz.

Referenced by GetPos(), GmfCpyLin(), and GmfGetLin().

static void ScaKwdHdr ( GmfMshSct msh,
int  KwdCod 
)
static
static int ScaKwdTab ( GmfMshSct msh)
static
static void ScaWrd ( GmfMshSct msh,
unsigned char *  wrd 
)
static
static void SetPos ( GmfMshSct msh,
long  pos 
)
static

References RecDblWrd(), RecWrd(), and GmfMshSct::ver.

Referenced by GmfSetKwd().

Variable Documentation

int GmfIniFlg =0
static
const char* GmfKwdFmt[80+1][4]
static
GmfMshSct* GmfMshTab[100+1]
static