master
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7#undef __MSVCRT_VERSION__
8#define _UCRT
9
10#include <corecrt_startup.h>
11#include <internal.h>
12#include <stdlib.h>
13#include <new.h>
14
15int __cdecl __getmainargs(int *argc, char ***argv, char ***env, int DoWildCard, _startupinfo *StartInfo)
16{
17 _initialize_narrow_environment();
18 _configure_narrow_argv(DoWildCard ? _crt_argv_expanded_arguments : _crt_argv_unexpanded_arguments);
19 *argc = *__p___argc();
20 *argv = *__p___argv();
21 *env = *__p__environ();
22 _set_new_mode(StartInfo->newmode);
23 return 0;
24}
25int __cdecl (*__MINGW_IMP_SYMBOL(__getmainargs))(int *, char ***, char ***, int, _startupinfo *) = __getmainargs;