From: shifter Newsgroups: comp.os.msdos.djgpp Subject: why don't this work Date: Fri, 27 Feb 1998 23:09:43 -0600 Organization: The Destek Group, Inc. Lines: 21 Message-ID: <34F79C17.71DC@sainet.net> NNTP-Posting-Host: www.sainet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk #include main() { char *i; char *password; clrscr(); printf ("Input a password:"); gets(password); printf("you typed:%s\n",password); do{ printf ("Input a password:%s:",i); }while (gets(i) != password); printf("you got it!!!"); exit(0); } i'm trying to get it to break out of loop with the correct password what am i doing wrong? ralph