void morphMe(char *str) { char *temp; if(morphinit()<0) printf("\nError, cant init morphy"); //wninit(); printf("\n%s", morphword(str, NOUN)); while (temp != NULL) { temp=morphstr(str, NOUN); printf("\n%s", temp); } re_morphinit(); }
void re_wninit() { int i; void readfnames(); for (i = 1; i < NUMPARTS + 1; i++) { fclose(datafps[i]); fclose(indexfps[i]); } fclose(sensefp); do_init(); for (i = 1; i < NUMPARTS + 1; i++) readfnames(i); re_morphinit(); }
int re_wninit(void) { int openerr; char *env; closefps(); if (env = getenv("WNDBVERSION")) { wnrelease = strdup(env); /* set release */ assert(wnrelease); } openerr = do_init(); if (!openerr) { OpenDB = 1; openerr = re_morphinit(); } return(openerr); }