ReactOS 0.4.16-dev-942-g91fadeb
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
13int __cdecl atexit(void (__cdecl* _Func)(void))
14{
15 // Go through _onexit, so that the initializer is pulled in.
17 return (result == NULL) ? -1 : 0;
18}
#define __cdecl
Definition: accygwin.h:79
#define NULL
Definition: types.h:112
int __cdecl atexit(void(__cdecl *function)(void))
Definition: stubs.c:10
GLuint64EXT * result
Definition: glext.h:11304
int(__cdecl * _onexit_t)(void)
Definition: stdlib.h:28
_onexit_t __cdecl _onexit(_In_opt_ _onexit_t _Func)