Re: triggering an event every 5 minutes in C

From: Måns Rullgård (mru_at_inprovide.com)
Date: 03/15/05


Date: Tue, 15 Mar 2005 18:55:52 +0100

Jon Zero <jzero@nospam.net> writes:

> I am trying to figure out what the best way to have my program do
> something (change the value of a variable) every x number of minutes. Can
> somebody give me a pointer in the right direction? I am writing in C in
> a linux environment.

man setitimer

-- 
Måns Rullgård
mru@inprovide.com


Relevant Pages

  • Re: Why the SEGFAULT in this code?
    ... Måns Rullgård said the following, ... And you should not cast the returned value of malloc, ... "pointer to void", which can be converted into any object pointer. ... it is assumed to return 'int' by default. ...
    (comp.unix.programmer)
  • Re: Validate a pointer
    ... On Sat, 11 Dec 2004, Måns Rullgård wrote: ... >> valid or not, arrange to trap the apprpriate signals, and handle ... pointer - the memory you trash will be the memory of the child unless you are ...
    (comp.unix.programmer)
  • Re: How to trigger an event every 5 minutes
    ... Jon Zero wrote: ... > somebody give me a pointer in the right direction? ... have a busy-loop inside which you check the elapsed time using time ... There are rather better system-specific solutions to this; ...
    (comp.lang.c)
  • Re: NULL in variadic function calls
    ... Måns Rullgård wrote: ... > false if used as a truth value. ... The null pointer constant is written 0 (technically, ...
    (comp.unix.programmer)
  • Re: NULL in variadic function calls
    ... "David Schwartz" writes: ... The bit representation of a NULL pointer can be anything at all. ... Måns Rullgård ...
    (comp.unix.programmer)