void b_main_sink(void * void_data_ptr);void _main(){char * data;char data_buf[FILENAME_MAX]="";data=data_buf;{size_t data_len=strlen(data);FILE * pFile;if(FILENAME_MAX-data_len > 1){pFile=FOPEN("C:\\temp\\file.txt", "r");if (pFile!=NULL){fgets(data+data_len, (int)(FILENAME_MAX-data_len), pFile);fclose(pFile);}}}b_main_sink(&data);}void b_main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{FILE *file=NULL;file=FOPEN(data, "wb+");if (file!=NULL) fclose(file);}}
void b_main_sink(void * void_data_ptr);static void main(){char * data;char data_buf[FILENAME_MAX]="";data=data_buf;strcpy(data, "c:\\temp\\file.txt");strcpy(data, "/tmp/file.txt");b_main_sink(&data);}void b_main_sink(void * void_data_ptr){char * * data_ptr=(char * *)void_data_ptr;char * data=(*data_ptr);{FILE *file=NULL;file=FOPEN(data, "wb+");if (file!=NULL) fclose(file);}}