Пример #1
0
static void dictation_session_callback(DictationSession *session, DictationSessionStatus status, 
                                       char *transcription, void *context) {
  if(status == DictationSessionStatusSuccess) {
    // Check for the def 
    check_def(transcription);
  } else {
    APP_LOG(APP_LOG_LEVEL_ERROR, "Transcription failed.\n\nError ID:\n%d", (int)status);
  }
}
Пример #2
0
int			main(int argc, char **argv)
{
	if (argc > 1)
	{
		check_def();
		if (verif(argv[1]))
		{
			ft_putendl("Good");
			return (1);
		}
		return (0);
	}
	ft_putendl_fd("You need an assembly file \".s\"", 2);
	return (0);
}