Re: How To Implement Timer in C



On Feb 27, 9:15 pm, "UG" <unmeshgh...@xxxxxxxxx> wrote:
I just wanted to know whether any timer facility exists in C, as it is
not mentioned in K&R 2, or in the ISO Draft. By timer function i mean
that when we use standard input function like scanf() or getch() or
any other function, the interface stops to take input from user but
what if user doesn't give input for hours, the program will still be
waiting. Is there any way to circumvent the scanf() (or any other
input function for that matter) so that it takes some default input or
no input and just proceeds to the next line of the execution assuming
input from user as nothing and acts accordingly.

yes their exists a time delaying facility under c
the
*delay()* function which delay the output on the the screen
by
the time of declared in side bracesthis function is defined in dos.h
header file




.



Relevant Pages

  • Re: How To Implement Timer in C
    ... Is there any way to circumvent the scanf() (or any other ... yes their exists a time delaying facility under c ... The said function and the header file are not a part of Standard C. ...
    (comp.lang.c)
  • Re: How To Implement Timer in C
    ... that when we use standard input function like scanfor getch() or ... Is there any way to circumvent the scanf() (or any other ... yes their exists a time delaying facility under c ...
    (comp.lang.c)
  • Re: How To Implement Timer in C
    ... that when we use standard input function like scanfor getch() or ... Is there any way to circumvent the scanf() (or any other ... input function for that matter) so that it takes some default input or ...
    (comp.lang.c)
  • Re: [FAQs] scanf returns EOF after reading non-number
    ... >> make my own scanf function with getch. ... I saw getch in K&R ... The subject of my question is a standard function. ... > might do, take all your user input as string data, and convert ...
    (alt.comp.lang.learn.c-cpp)
  • Re: How To Implement Timer in C
    ... Is there any way to circumvent the scanf() (or any other ... no input and just proceeds to the next line of the execution assuming ...
    (comp.lang.c)