This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help with process and underprocess in C

I need to start a function and it must run continiosly until i press a key.
I have tested it using "getchar()", but it doesn't work, becuase i need to press something to continue running the software.
So, I think that i should start a process that only waits for a key to be pressed, but i don't know how to do this.
What can i do?

Parents
  • "So getchar() doesnt work"

    No - getchar does work; it is doing exactly what it says it should do!

    If this is not the behaviour that you require, then you have two choices:

    1. Use something else that does do what you require;

    2. Modify getchar to do what you require.
    (The manual tells you how to do this - see the link I gave you earlier!)

Reply
  • "So getchar() doesnt work"

    No - getchar does work; it is doing exactly what it says it should do!

    If this is not the behaviour that you require, then you have two choices:

    1. Use something else that does do what you require;

    2. Modify getchar to do what you require.
    (The manual tells you how to do this - see the link I gave you earlier!)

Children
No data