Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

common.c File Reference

Implements functions that support all other modules. More...

#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stddef.h>
#include <unistd.h>
#include "fret.h"
#include "gramstore.h"
#include "common.h"

Include dependency graph for common.c:


Functions

void setError (FretError error)
void setInitState (bool isInitialized)
FretError getError (void)
void setMinLength (unsigned int len)
unsigned int getMinLength (void)
void resetGram (Gram *const pGram)

Detailed Description

Implements functions that support all other modules.


Function Documentation

FretError getError void   ) 
 

Return the internal error code.

unsigned int getMinLength void   ) 
 

Get the minimum Gram length.

void resetGram Gram *const   pGram  ) 
 

Initialise fields in a Gram structure.

void setError FretError  error  ) 
 

Save an internal error code.

void setInitState bool  isInitialized  ) 
 

Update the library init status.

void setMinLength unsigned int  len  ) 
 

Set the minimum Gram length.


Generated on Thu Jan 19 18:59:20 2006 for FRET by  doxygen 1.4.4