getpass causes fprintf(stderr... not to be flushed

Darren Stalder dstalder at gmu90x.UUCP
Thu May 26 20:44:57 AEST 1988


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 at gmuvax2.gmu.edu
  Be!           Bitnet:   dstalder at 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.



More information about the Comp.lang.c mailing list