static wchar_t * main_source(wchar_t * data){{size_t data_len=wcslen(data);FILE * pFile;if(FILENAME_MAX-data_len > 1){pFile=FOPEN(L"C:\\temp\\file.txt", L"r");if (pFile!=NULL){fgetws(data+data_len, (int)(FILENAME_MAX-data_len), pFile);fclose(pFile);}}}return data;}void _main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;data=main_source(data);{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}}
static wchar_t * main_source(wchar_t * data){wcscat(data, L"file.txt");return data;}static void main(){wchar_t * data;wchar_t data_buf[FILENAME_MAX]=BASEPATH;data=data_buf;data=main_source(data);{int fd;fd=OPEN(data, O_RDWR|O_CREAT, S_IREAD|S_IWRITE);if (fd!=-1){CLOSE(fd);}}}