Can I convert malloc allocated space which is pointed to by pointer variable into file for example
char* ptr = (char*) malloc(size);
after