Main Page   Compound List   File List   Compound Members   File Members  

text2wngram.c File Reference

Convert a text stream 2 word-ngram stream. More...

#include <sys/types.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "toolkit.h"
#include "pc_libs/pc_general.h"
#include "rr_libs/general.h"

Go to the source code of this file.

Defines

#define DEFAULT_MAX_FILES   20
#define TEMP_FILE_ROOT   "text2wngram.tmp."

Functions

int cmp_strings (const void *string1, const void *string2)
void merge_tempfiles (int start_file, int end_file, char *temp_file_root, char *temp_file_ext, int max_files, char *tempfiles_directory, FILE *outfile, int n, int verbosity)
void main (int argc, char **argv)


Detailed Description

Convert a text stream 2 word-ngram stream.

Definition in file text2wngram.c.


Define Documentation

#define DEFAULT_MAX_FILES   20
 

Definition at line 20 of file text2wngram.c.

Referenced by main().

#define TEMP_FILE_ROOT   "text2wngram.tmp."
 

Definition at line 21 of file text2wngram.c.

Referenced by main().


Function Documentation

int cmp_strings const void *    string1,
const void *    string2
 

Definition at line 36 of file text2wngram.c.

Referenced by main().

void main int    argc,
char **    argv
 

Definition at line 292 of file text2wngram.c.

References cmp_strings(), DEFAULT_MAX_FILES, DEFAULT_N, DEFAULT_TEMP, DEFAULT_VERBOSITY, flag, fprintf(), i, merge_tempfiles(), pc_flagarg(), pc_intarg(), pc_message(), pc_report_unk_args(), pc_stringarg(), quit(), report_version(), rr_feof(), rr_malloc(), rr_oclose(), rr_oopen(), salloc(), STD_MEM, TEMP_FILE_ROOT, and verbosity.

void merge_tempfiles int    start_file,
int    end_file,
char *    temp_file_root,
char *    temp_file_ext,
int    max_files,
char *    tempfiles_directory,
FILE *    outfile,
int    n,
int    verbosity
 

Definition at line 48 of file text2wngram.c.

References flag, fprintf(), free(), i, j, pc_message(), quit(), rr_feof(), rr_iclose(), rr_iopen(), rr_malloc(), rr_oopen(), and verbosity.

Referenced by main(), and merge_tempfiles().


Generated on Tue Dec 21 13:54:48 2004 by doxygen1.2.18