[comp.lang.c] getpass causes fprintf

dstalder@gmu90x.UUCP (Darren Stalder) (05/26/88)

In one program I am working on, I needed to used getpass.  I was
getting very frustrated since my error messages were printing out in
the wrong places.

After I used getpass, if the password was too short then I used
fprintf(stderr, ...) to print out a message.  Unfortunately, another
call to getpass and then an fprintf were needed to printout that
message.  The message from the latest fprintf just sat out there in
stderr somewhere.  I tried fflush(stderr) but this didnt work.

Could anyone help me?  I am using ultrix V2.2.  Please use e-mail
since I rarely read comp.lang.c.
--
                  Torin/Darren Stalder/Wolf
Blessed         Internet: dstalder@gmuvax2.gmu.edu
  Be!           Bitnet:   dstalder@gmuvax
                ATTnet:   1-703-352-8124
      Hail      uucp:     multiverse!uunet!pyrdc!gmu90x!dstalder
        Eris!   Snail:    PO Box 405/Fairfax, VA 22030/USA
DISCLAIMER: I have enough problems getting credit what I do do for
            work, much less this stuff.