•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 422,371 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,552 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 31435 | Replies: 2
![]() |
getcharThis is a standard function that gets a character from the stdin.
getchThis is a nonstandard function that gets a character from keyboard, does not echo to screen.
getcheThis is a nonstandard function that gets a character from the keyboard, echoes to screen.
Use
getchar if you want it to work on all compilers. Use getch or getche on a system that supports it when you want keyboard input without pressing [Enter].And note that the return value of all three is
int! You need this to properly check for EOF. ![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
Similar Threads
- replacement of getch() (C++)
- how to get the last key pressed without stopping the programm ? (C)
- C++ help for a newbie (C++)
- Code for Image Processing (C)
Other Threads in the C Forum
- Previous Thread: Hook Alert
- Next Thread: File size in C (Win32)



Linear Mode