aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/misc/ucrt__wgetmainargs.c
blob: 17a8d895e88744bdef083fa955bc49b9fd645fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */

#undef __MSVCRT_VERSION__
#define _UCRT

#include <corecrt_startup.h>
#include <internal.h>
#include <stdlib.h>
#include <new.h>

int __cdecl __wgetmainargs(int *argc, wchar_t ***argv, wchar_t ***env, int DoWildCard, _startupinfo *StartInfo)
{
  _initialize_wide_environment();
  _configure_wide_argv(DoWildCard ? _crt_argv_expanded_arguments : _crt_argv_unexpanded_arguments);
  *argc = *__p___argc();
  *argv = *__p___wargv();
  *env = *__p__wenviron();
  _set_new_mode(StartInfo->newmode);
  return 0;
}
int __cdecl (*__MINGW_IMP_SYMBOL(__wgetmainargs))(int *, wchar_t ***, wchar_t ***, int, _startupinfo *) = __wgetmainargs;