Advertisement
bottomy

target

Oct 2nd, 2012
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <mach/mach.h>
  4. #include <mach/mach_vm.h>
  5.  
  6. const char Value[] = "does not work";
  7.  
  8. int main(int argc, char *argv[])
  9. {
  10.     mach_error_t err = task_suspend(mach_task_self());
  11.    
  12.     if (err != KERN_SUCCESS)
  13.     {
  14.         mach_error("task_suspend", err);
  15.         printf("Task suspension error: %u\n", err);
  16.         return EXIT_FAILURE;
  17.     }
  18.    
  19.     printf("target: It %s\n", Value);
  20.    
  21.     return EXIT_SUCCESS;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement