
Name
VSerror � Get text for voice system error messages
Synopsis
#include <sys/types.h> 
#include VS.h 
char *VSerror (errid) 
int errid: /* negative error value */ 
Description
VSerror returns a character string explaining what the specified error id means. Error ids equal to negative one (-1) are treated as system errors and the appropriate text in the error table (sys_errlist[]) is returned. Error ids defined in VS.h and System errors have text associated with them; all other errors are unknown to VSerror and result in a generic UNKNOWN message being returned. Currently, the error return values from VSstartup and VStoqkey and from the underlying Bulletin Board interface functions are recognized by VSerror.
Example
char *emsg; 
key_t Qkey; 
/* find the qkey of the speech recognition dip */ 
Qkey = VStoqkey(spRecog); 
if (Qkey <= 0) { 
emsg = VSerror(Qkey); 
fprintf(stderr,VStoqkey failed; %s\n, emsg); 
}