ReactOS
0.4.16-dev-1946-g52006dd
atexit.c
Go to the documentation of this file.
1
//
2
// atexit.c
3
//
4
// Copyright (c) 2024 Timo Kreuzer
5
//
6
// Implementation of atexit.
7
//
8
// SPDX-License-Identifier: MIT
9
//
10
11
#include <stdlib.h>
12
13
int
__cdecl
atexit
(
void
(
__cdecl
* _Func)(
void
))
14
{
15
// Go through _onexit, so that the initializer is pulled in.
16
_onexit_t
result
=
_onexit
((
_onexit_t
)_Func);
17
return
(
result
==
NULL
) ? -1 : 0;
18
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
NULL
#define NULL
Definition:
types.h:112
atexit
int __cdecl atexit(void(__cdecl *function)(void))
Definition:
stubs.c:10
result
GLuint64EXT * result
Definition:
glext.h:11304
_onexit_t
int(__cdecl * _onexit_t)(void)
Definition:
stdlib.h:28
_onexit
_onexit_t __cdecl _onexit(_In_opt_ _onexit_t _Func)
sdk
lib
vcruntime
atexit.c
Generated on Thu Dec 4 2025 06:16:28 for ReactOS by
1.9.6