Functions
misc.h File Reference

(s3.0 specific ) Miscellaneus operation used by differerent sphinx 3.0 family of tools. More...

#include <stdio.h>
#include "s3types.h"
#include "search.h"

Go to the source code of this file.

Functions

FILE * ctlfile_open (char *file)
 
int32 ctlfile_next (FILE *fp, char *ctlspec, int32 *sf_out, int32 *ef_out, char *uttid)
 
void ctlfile_close (FILE *fp)
 
int32 argfile_load (char *file, char *pgm, char ***argvout)
 
int32 nbestfile_load (char *dir, char *uttid, srch_hyp_t ***hyplist_out)
 
void nbestlist_free (srch_hyp_t **hyplist, int32 nhyp)
 

Detailed Description

(s3.0 specific ) Miscellaneus operation used by differerent sphinx 3.0 family of tools.

Function Documentation

◆ argfile_load()

int32 argfile_load ( char *  file,
char *  pgm,
char ***  argvout 
)

Load arguments from a file and create a null-terminated argv array.

Parameters
fileThe file name for input argument
pgmThe program name
argvoutOutput: The argument

◆ ctlfile_close()

void ctlfile_close ( FILE *  fp)

Close the control file.

Parameters
fpThe input file pointer

◆ ctlfile_next()

int32 ctlfile_next ( FILE *  fp,
char *  ctlspec,
int32 *  sf_out,
int32 *  ef_out,
char *  uttid 
)

Read next control file entry.

Returns
: 0 if successful, -1 otherwise.
Parameters
uttidThe utterance ID

◆ ctlfile_open()

FILE* ctlfile_open ( char *  file)

Return value: control file; E_FATAL if cannot open

Parameters
fileThe input file name

◆ nbestfile_load()

int32 nbestfile_load ( char *  dir,
char *  uttid,
srch_hyp_t ***  hyplist_out 
)

◆ nbestlist_free()

void nbestlist_free ( srch_hyp_t **  hyplist,
int32  nhyp 
)