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.
Detailed Description
(s3.0 specific ) Miscellaneus operation used by differerent sphinx 3.0 family of tools.
Function Documentation
int32 argfile_load |
( |
char * |
file, |
|
|
char * |
pgm, |
|
|
char *** |
argvout | |
|
) |
| | |
Load arguments from a file and create a null-terminated argv array.
- Parameters:
-
| file | The file name for input argument |
| pgm | The program name |
| argvout | Output: The argument |
void ctlfile_close |
( |
FILE * |
fp |
) |
|
Close the control file.
- Parameters:
-
| fp | The input file pointer |
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:
-
FILE* ctlfile_open |
( |
char * |
file |
) |
|
Return value: control file; E_FATAL if cannot open
- Parameters:
-
int32 nbestfile_load |
( |
char * |
dir, |
|
|
char * |
uttid, |
|
|
srch_hyp_t *** |
hyplist_out | |
|
) |
| | |
void nbestlist_free |
( |
srch_hyp_t ** |
hyplist, |
|
|
int32 |
nhyp | |
|
) |
| | |