Version: 9.16.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 GmfMshSct * GmfMshTab [100+1]
 
static const char * GmfKwdFmt [81+1][4]
 

Macro Definition Documentation

◆ Asc

#define Asc   1

◆ Bin

#define Bin   2

◆ BufSiz

#define BufSiz   10000

◆ InfKwd

#define InfKwd   1

◆ MaxMsh

#define MaxMsh   100

◆ MshFil

#define MshFil   4

◆ RegKwd

#define RegKwd   2

◆ SolFil

#define SolFil   8

◆ SolKwd

#define SolKwd   3

◆ WrdSiz

#define WrdSiz   4

Function Documentation

◆ ExpFmt()

◆ GetPos()

static long GetPos ( GmfMshSct *  msh)
static

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

Referenced by GmfOpenMesh(), and ScaKwdTab().

◆ GmfCloseMesh()

◆ GmfCpyLin()

void GmfCpyLin ( int  InpIdx,
int  OutIdx,
int  KwdCod 
)

◆ GmfGetLin()

◆ GmfGotoKwd()

int GmfGotoKwd ( int  MshIdx,
int  KwdCod 
)

◆ GmfOpenMesh()

◆ GmfSetKwd()

◆ GmfSetLin()

◆ GmfStatKwd()

int GmfStatKwd ( int  MshIdx,
int  KwdCod,
  ... 
)

◆ RecBlk()

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

◆ RecDblWrd()

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

References GmfMshSct::hdl, and WrdSiz.

Referenced by GmfCpyLin(), and SetPos().

◆ RecWrd()

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

References GmfMshSct::hdl, and WrdSiz.

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

◆ ScaBlk()

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

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

Referenced by GmfGetLin().

◆ ScaDblWrd()

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

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

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

◆ ScaKwdHdr()

static void ScaKwdHdr ( GmfMshSct *  msh,
int  KwdCod 
)
static

◆ ScaKwdTab()

static int ScaKwdTab ( GmfMshSct *  msh)
static

◆ ScaWrd()

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

◆ SetPos()

static void SetPos ( GmfMshSct *  msh,
long  pos 
)
static

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

Referenced by GmfSetKwd().

Variable Documentation

◆ GmfIniFlg

int GmfIniFlg =0
static

Referenced by GmfOpenMesh().

◆ GmfKwdFmt

const char* GmfKwdFmt[ 81+1][4]
static

◆ GmfMshTab