omorfi 0.9.9
Open morphology of Finnish
Functions
omorfi-lookup.cc File Reference

Example demo of omorfi C++ API usage. More...

#include <getopt.h>
#include "omorfi.hh"

Functions

void print_usage (const char *program_name)
 
int main (int argc, char **argv)
 

Detailed Description

Example demo of omorfi C++ API usage.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Command-line interface to omorfi lookup.

Parameters
argcnumber of arguments
argvarguments in array
Returns
0 if program terminated succesfully, 1 otherwise

◆ print_usage()

void print_usage ( const char *  program_name)

Print standard usage message.

Parameters
program_namename of the program