Dynamic Memory Allocation For Files

Submitted by nrslinux
on February 17, 2005 - 11:46pm

Can we allocate memory to files (eg. .txt,.bmp,.jpg files) dynamically like calloc() ,malloc() does?? if yes how?? And will these allocated files can be accessed using normal C file pointers????

what do you mean?

strcmp
on
February 18, 2005 - 7:28am

Do you mean somethinp like mmap(), which makes file data accessible via C-pointers (readable and writeable, if you say so) by putting them into your programs's address space. man mmap

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.