Gaurav sharma
Gaurav sharma
Branch Unspecified
27 Sep 2008

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.....
niraj.kumar

niraj.kumar

Branch Unspecified
29 Sep 2008
You can use sleep() command to implement that .

Or other way would be to use user defined signal handling
sriramchandrk

sriramchandrk

Branch Unspecified
29 Sep 2008
Use alarm command

try to find in stevens book or google it.

Regards
Sriram
mahul

mahul

Branch Unspecified
29 Sep 2008
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.

Share this content on your social channels -

Only logged in users can reply.