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?