Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!usenet! From: thurmag@jacobs.cs.orst.edu (Gary Thurman) Newsgroups: comp.lang.c Subject: Trouble spot! Message-ID: <1991Apr11.201116.28143@lynx.CS.ORST.EDU> Date: 11 Apr 91 20:11:16 GMT Sender: @lynx.CS.ORST.EDU Distribution: usa Organization: Oregon State University, CS Dept. Lines: 198 Nntp-Posting-Host: jacobs.cs.orst.edu I am in the process of learning Turbo-C, and have learned most of what I know through reading books. I have finally reached a point for which I need help from people that know what their doing! :-) I am trying to re-call data from a simple mailing list database, just by giving a persons name. I have a feeling that I'm not setting up the function "Find()" the right way. Any help would sure be appreciated. Thanks. Here is the program: /* A simple mailing list */ #include #include #define SIZE 100 struct addr { char name[40]; char street[40]; char city[30]; char state[3]; char zip[10]; } addr_info[SIZE]; void enter(), init_list(), display(), save(), load(), find(); main() { char choice; init_list(); for(;;) { choice = menu(); switch(choice) { case 'e': enter(); break; case 'd': display(); break; case 'f': find(); break; case 's': save(); break; case 'l': load(); break; case 'q': exit(1); } } } /* initialize the addr_info array */ void init_list() { register int t; for(t=0; t| 132 |-----------\ Email: thurmag@jacobs.cs.orst.edu +-(O)--------(O)--+ Corvallis, Oregon