[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] ()
On Thu, 25 Feb 1999 11:28:56 +0100, Guido Flohr wrote:
GF>I agree that using these cookies is probably not best style. Anyway, does
GF>it really hurt to provide them? They only have to be updated every 2
GF>seconds.
They are not updated - they provide pointers to the actual variables.
The code in main.c is like this:
/* install new DATE and TIME cookies
*/
newcookie[i].tag = COOKIE_DATE;
newcookie[i].value = &datestamp;
i++;
newcookie[i].tag = COOKIE_TIME;
newcookie[i].value = ×tamp;
i++;
Petr
--
E-mail: stehlik@cas3.zlin.vutbr.cz PARCP developer
WWW: http://cas3.zlin.vutbr.cz/~stehlik/ MiNTOS/Linux user
mirror: http://users.zln.cz/~pstehlik/ Atari 800XL emulation
mirror: http://www.stehlik.cyberstrider.org/ Atari Falcon040