CE Home
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Computer Science & IT Engineering
Notices


Advertisements
Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)
Old 27th September 2008, 03:34 PM
CE - Newbie
 
Join Date: 27th September 2008
I'm a Crazy Computer Engg. Engineer
Posts: 2
Talking 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.....
Gaurav sharma is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)
Old 29th September 2008, 05:05 PM
CE - Regular Member
 
Join Date: 24th July 2008
I'm a Crazy Computer Engineer
Posts: 50
Default Re: Time bounded input in C programming language

You can use sleep() command to implement that .

Or other way would be to use user defined signal handling
niraj.kumar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 29th September 2008, 06:34 PM
CE - Regular Member
 
Join Date: 25th September 2008
I'm a Crazy CSE Engineer
Posts: 65
Default Re: Time bounded input in C programming language

Use alarm command

try to find in stevens book or google it.

Regards
Sriram
sriramchandrk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 29th September 2008, 07:49 PM
CE - Addict
 
mahul's Avatar
 
Join Date: 14th November 2007
Location: kolkata
I'm a Crazy Computer Science Engineer
Posts: 275
Send a message via Yahoo to mahul
Default Re: Time bounded input in C programming language

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.
__________________

An apple changed the world, it fell on Newton's head

My Blog
mahul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
36 hrs in mumbai-pune...A day stretched long maximasatya Blogs 0 24th July 2008 07:36 PM
Time Travel - A brief overview... suyash CE - Labs 11 12th March 2008 02:40 AM
Hypertext Preprocessor Programming AlenFlora Chillax : Chit-Chat 0 12th February 2008 01:51 PM


All times are GMT +5.5. The time now is 12:15 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.

Advertisements