Julius 4.2
plugin/result.c
説明を見る。
00001 
00034 /***************************************************************************/
00035 
00036 #include <stdio.h>
00037 #include <string.h>
00038 
00039 #define PLUGIN_TITLE "result process plugin for Julius"
00040 
00063 int
00064 initialize()
00065 {
00066   return 0;
00067 }
00068 
00105 int
00106 get_plugin_info(int opcode, char *buf, int buflen)
00107 {
00108   switch(opcode) {
00109   case 0:
00110     /* plugin description string */
00111     strncpy(buf, PLUGIN_TITLE, buflen);
00112     break;
00113   }
00114 
00115   return 0;
00116 }
00117 
00156 void
00157 result_best_str(char *result_str)
00158 {
00159   if (result_str == NULL) {
00160     printf("[failed]\n");
00161   } else {
00162     printf("               <<%s>>\n", result_str);
00163   }
00164 }