Process Control Function
int execl(const char *filename, const char *arg0, ...);
int _execl(const char *cmdname, const char *arg0, ... const char *argn, NULL);
int _wexecl(const wchar_t *cmdname, const wchar_t *arg0, ... const wchar_t *argn, NULL);
int _texecl(const TCHAR *cmdname, const TCHAR *arg0, ... const TCHAR *argn, NULL);
Internationalization (I18n) Function Overview
These functions load and execute a new process. They are similar to _execv/execv , but the argv strings are specified individually instead of as an array. A null pointer must be passed as the last such argument.
_wexecl is the wide-character version of the function; its parameters and return value are wide characters. _wexecl is supported on Windows platforms only. There is no wide version on ANSI platforms.
_texecl is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _execl or _wexecl .
I18n Issues
Use the appropriate version of the function as required for internationalization support, noting the following:
For a Windows MBCS application, _execl depends on the multibyte code page in effect. By default, the multibyte code page is set to the system-default ANSI code page obtained from the operating system at program startup.
Use _getmbcp and _setmbcp to query or change the current multibyte code page, respectively.
There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the execl function can be used.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Process Control Functions
|