/* frequen.c -- the frequency of each letter */ #include #include #include "ios.h" /* using the input/output service module */ static long int Table [256]; void main ( int argc, char * argv [] ) { int c, k, n; long int N; char * from; FILE * outfile; if ( argc < 3 ) err_command_line ( "frequen infile outfile" ); open_input_file ( argv [1] ); for ( k=0; k<256; k++ ) Table [k] = 0; while ( 0 <= ( n = get_line ( & from ) ) ) { for ( k=0; k