Hello,
i want to know how to write a function in c which is similar to getch() but i can write the wait time.
i.e it doesn't wait till the carriage return like getch() but proceeds with further execution of the program if no input is received for x no of ms.
m a beginner and trying to designing a simple snake game in C
Thanks a lot!!
Sourabh G
India

That depends on the compiler you are using. Would I be correct in assuming it's an old Borland compiler? 3.0 perhaps?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.