Thread: Masking Characters In Scanf

  1. #1
    Registered User coolshyam's Avatar
    Join Date
    Mar 2005
    Posts
    26

    Question Masking Characters In Scanf

    i am at present working on an ATM paper in the IEEE transcation
    the problem is i need t mask the characters that appear on the screen with a "*" when the user is entering the pin

    i know that getpass could be used, but that only displays a blank
    screen

    can you please provide me a code that can mask a character simultaneouly as the user is entering a pin
    you can also mail your reply at [email protected]

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    This cannot be done in a standard way. I think that if you use a console API (is that the right term?) like curses/ncurses you should be able to do that. I also think that there are win32 console functions that may let you do it but I'm not sure about that.

    BTW: This board is here for a reason. No one is going to email a reply. If you go to your user control panel you should be able to 'subscribe' to a thread so that an email is sent to you every time a reply is posted.

  3. #3
    Registered User coolshyam's Avatar
    Join Date
    Mar 2005
    Posts
    26
    [B]but if you look at VB
    we can easily mask the characters in a text box
    perhaps there is a seperate library file in VB which
    just allows us to do that????
    by the way, what languge is used to write softwares for ATM's???
    i believe it must be in C

    any questions any type in programming

    a ready made answer
    -----------------------------------------------------------------------------------
    FORTUNE FAVOURS THE BOLD!
    -----------------------------------------------------------------------------------

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    Why are you moving to a new line in the middle of a sentence? Stop hitting enter.
    When no one helps you out. Call google();

  5. #5
    Registered User coolshyam's Avatar
    Join Date
    Mar 2005
    Posts
    26
    Quote Originally Posted by InvariantLoop
    Why are you moving to a new line in the middle of a sentence? Stop hitting enter.
    as you say sir

    any questions any type in programming

    a ready made answer
    -----------------------------------------------------------------------------------
    FORTUNE FAVOURS THE BOLD!
    -----------------------------------------------------------------------------------

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Counting the characters from each word from a text file
    By flipguy_ph in forum C Programming
    Replies: 6
    Last Post: 04-27-2009, 05:56 PM
  2. problem with reading characters
    By csvraju in forum C Programming
    Replies: 4
    Last Post: 03-31-2009, 07:59 AM
  3. Removing Specific Characters from Strings
    By gfmartin05 in forum C++ Programming
    Replies: 4
    Last Post: 02-09-2009, 09:53 AM
  4. Quzah's printf and scanf tutorial...
    By quzah in forum C Programming
    Replies: 2
    Last Post: 03-20-2002, 03:59 AM