Thread: Writing your own functions (particularly getchar())

  1. #1
    Registered User
    Join Date
    Mar 2020
    Posts
    15

    Writing your own functions (particularly getchar())

    Hello,
    I have seen people writing / rewriting some predefined or "included" functions and I need to make one similar to getchar() but instead of [enter] it takes [space]. Was looking around internet a bit and cannot find, or I'm blind probably . I'd use it when writing longer paragraphs in printf (like a story) and every time I put getchar() it takes [enter] and goes to new line. So, my question is can I "fix" it or "rewrite" it so it takes [space] instead, or is it maybe something like that already implemented?

    Thank you.

    EDIT:

    I can just use _getch(); Sorry guys and thank you for looking at the thread.
    Last edited by 574515; 03-31-2020 at 12:15 PM. Reason: Found solution

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-17-2018, 07:52 AM
  2. help with writing functions
    By Nastia Kozak in forum C Programming
    Replies: 1
    Last Post: 05-29-2016, 01:53 PM
  3. Replies: 3
    Last Post: 10-19-2009, 10:54 PM
  4. Writing ADT Functions
    By Jedijacob in forum C Programming
    Replies: 5
    Last Post: 04-11-2005, 05:02 PM
  5. getchar() and other library functions
    By dbaryl in forum C Programming
    Replies: 4
    Last Post: 07-24-2002, 12:47 AM

Tags for this Thread