C code for implementation of Memory Mapping

Please post a C code for implementation of Memory Mapping function.
It should simulate the mmap command.

Why?

  • Apparently this message is too short...