Time bounded input in C programming language

😁

I want to know about 😒 "time bounded input in c language" ...
it means user has only few seconds which has define by developer
if user is not give input on this time next line should be compile.
but note this this funda or logic should be in c language.....

Replies

  • niraj.kumar
    niraj.kumar
    You can use sleep() command to implement that .

    Or other way would be to use user defined signal handling
  • sriramchandrk
    sriramchandrk
    Use alarm command

    try to find in stevens book or google it.

    Regards
    Sriram
  • mahul
    mahul
    One easy way is to fork a child process that will generate a signal after a fixed time. This signal when captured can be used to skip the line.

You are reading an archived discussion.

Related Posts

I am a computer science student doing my final year..I am planning to take up a computer course shortly.. But i m a bit confused whether I should take up...

Hi

HI ce'ans im a newbie to this site. my name is fathima and im an electronics and instrumentation engg. student. i preferred to join in here for the following reasons...
i am in need of a circuit in which ; when the AC 230v supply through the first resistor gets cut off , the circuit is completed through the second...
Hi everyone our college is conducting a technical fest and the theme of the fest is green technology could you please suggest any events that come under this topic😎
i want some latest seminar topics regarding information technology.so kindly post some new topics with ppt. included