look.c File Reference

#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for look.c:

Go to the source code of this file.

Defines

#define nil   0
#define MAXLEN   1024

Functions

void nonascii (char *what)
int compare (char *prefix, char *word)
char * readword (FILE *f)
void look (void)
int main (int argc, char **argv)

Variables

char DEFAULT [] = "/usr/lib/dict/words"
char * string
char * wordlist = DEFAULT
int dflg = 0
int fflg = 0


Define Documentation

#define MAXLEN   1024
 

Definition at line 14 of file look.c.

Referenced by readword().

#define nil   0
 

Definition at line 3 of file look.c.


Function Documentation

int compare char *  prefix,
char *  word
 

Definition at line 24 of file look.c.

References cp, dflg, fflg, isalnum, isascii, isspace, isupper, nonascii, p, tolower, and wordlist.

void look void   ) 
 

Definition at line 85 of file look.c.

References c, compare, exit(), f, fopen(), fprintf(), fseek(), ftell(), high, nil, puts(), readword(), stderr, string, and wordlist.

Referenced by main(), and step().

int main int  argc,
char **  argv
 

Definition at line 128 of file look.c.

References dflg, exit(), fflg, fprintf(), look(), p, stderr, string, and wordlist.

void nonascii char *  what  ) 
 

Definition at line 18 of file look.c.

References exit(), fprintf(), and stderr.

char* readword FILE f  ) 
 

Definition at line 60 of file look.c.

References exit(), f, ferror, fgets(), fprintf(), MAXLEN, n, nil, stderr, strlen(), and wordlist.

Referenced by look().


Variable Documentation

char DEFAULT[] = "/usr/lib/dict/words"
 

Definition at line 10 of file look.c.

int dflg = 0
 

Definition at line 16 of file look.c.

Referenced by compare(), and main().

int fflg = 0
 

Definition at line 16 of file look.c.

Referenced by compare(), and main().

char* string
 

Definition at line 12 of file look.c.

Referenced by advance(), do_link(), do_mkdir(), do_slink(), do_unlink(), get_name(), last_dir(), look(), main(), new_node(), parse_path(), and search_dir().

char * wordlist = DEFAULT
 

Definition at line 12 of file look.c.

Referenced by command(), compare(), compile(), exec_one(), look(), main(), readword(), and transform().


Generated on Fri Apr 14 23:05:11 2006 for minix by  doxygen 1.4.6