Calling atexit
From: Kelvin Moss (km_jr_usenet_at_yahoo.com)
Date: 11/30/04
- Next message: dandelion: "Re: IVT at address 0"
- Previous message: Christian Staudenmayer: "Re: Increasing array size"
- Next in thread: dandelion: "Re: Calling atexit"
- Reply: dandelion: "Re: Calling atexit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Nov 2004 03:19:40 -0800
Hi all,
The prototype for atexit is 'int atexit(void (*function)(void))';
If I have a function foo defined as
void foo(void)
{
}
then what is the correct way to register the handler -
atexit(&foo); // I think this one
OR
atexit(foo);
Any references to Standard would be appreciated.
Thanks,
Sharad
- Next message: dandelion: "Re: IVT at address 0"
- Previous message: Christian Staudenmayer: "Re: Increasing array size"
- Next in thread: dandelion: "Re: Calling atexit"
- Reply: dandelion: "Re: Calling atexit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|