Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: C  |  size: 0.22 KB  |  hits: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <stdlib.h>
  2. #include <sys/mman.h>
  3.  
  4. int main(int argc, char ** argv)
  5. {
  6.     mmap(NULL, sizeof(char), PROT_READ | PROT_WRITE, MAP_FIXED | MAP_ANONYMOUS,
  7.          0, 0);
  8.     *( ( char* ) NULL ) = 0;
  9.     return 0;
  10. }