Shuaib Zahda wrote:
> Hello
>
> I am doing a program in which I want to allow my user to keep keying in
> until they put semicolon then the prompt will process the data.

gets(";")
or
gets(";\n")  if you want the semicolon to always be at the end of the line.

Beware that if you use gets(";") and the user enters "foo;bar" the "bar" will
be stuck in the buffer until you next read from stdin.


HTH,
Sebastian
-- 
Jabber: sepp2k / jabber.org
ICQ: 205544826