YAZ  5.34.0
Macros | Functions | Variables
stemwords.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "libstemmer.h"

Go to the source code of this file.

Macros

#define INC   10
 

Functions

static void stem_file (struct sb_stemmer *stemmer, FILE *f_in, FILE *f_out)
 
static void usage (int n)
 
int main (int argc, char *argv[])
 

Variables

const char * progname
 
static int pretty = 1
 

Macro Definition Documentation

◆ INC

#define INC   10

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 118 of file stemwords.c.

References pretty, progname, sb_stemmer_delete(), sb_stemmer_new(), stem_file(), and usage().

◆ stem_file()

static void stem_file ( struct sb_stemmer stemmer,
FILE *  f_in,
FILE *  f_out 
)
static

Definition at line 16 of file stemwords.c.

References free(), INC, malloc(), pretty, sb_stemmer_length(), and sb_stemmer_stem().

Referenced by main().

◆ usage()

static void usage ( int  n)
static

Display the command line syntax, and then exit.

Parameters
nThe value to exit with.

Definition at line 92 of file stemwords.c.

References progname.

Referenced by main().

Variable Documentation

◆ pretty

int pretty = 1
static

Definition at line 13 of file stemwords.c.

Referenced by main(), and stem_file().

◆ progname

const char* progname

Definition at line 12 of file stemwords.c.

Referenced by main(), usage(), and yaz_enable_panic_backtrace().