static wchar_t * main_source(wchar_t * data){{size_t data_len=wcslen(data);wchar_t * environment=GETENV(ENV_VARIABLE);if (environment!=NULL){wcsncat(data+data_len, environment, 100-data_len-1);}}return data;}void _main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=L"";data=data_buf;data=main_source(data);{HANDLE hFile;hFile=CreateFileW(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}
static wchar_t * main_source(wchar_t * data){wcscpy(data, L"c:\\temp\\file.txt");wcscpy(data, L"/tmp/file.txt");return data;}static void main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=L"";data=data_buf;data=main_source(data);{HANDLE hFile;hFile=CreateFileW(data, (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);if (hFile!=INVALID_HANDLE_VALUE){CloseHandle(hFile);}}}