BVB Source Codes

voltron Show inferior.c Source code

Return Download voltron: download inferior.c Source code - Download voltron Source code - Type:.c
  1. #include <unistd.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. void test_function()
  6. {
  7.     printf("*** test_function()\n");
  8. }
  9.  
  10. int main(int argc, char **argv)
  11. {
  12.     int a = 0;
  13.     int *b = NULL;
  14.     int c=0,d=0,e=0;
  15.  
  16.     if (argc > 1 && strcmp(argv[1], "sleep") == 0)
  17.     {
  18.         printf("*** Sleeping for 5 seconds\n");
  19.         sleep(5);
  20.     }
  21.     else if (argc > 1 && strcmp(argv[1], "loop") == 0)
  22.     {
  23.         printf("*** Looping forever()\n");
  24.         while(1) {
  25.             c++;
  26.             d+=2;
  27.             e+=3;
  28.         }
  29.         sleep(1);
  30.     }
  31.     else if (argc > 1 && strcmp(argv[1], "function") == 0)
  32.     {
  33.         printf("*** Calling test_function()\n");
  34.         test_function();
  35.     }
  36.     else if (argc > 1 && strcmp(argv[1], "crash") == 0)
  37.     {
  38.         printf("*** Crashing\n");
  39.         a = *b;
  40.     }
  41.     else
  42.     {
  43.         printf("Usage: inferior < sleep | loop | function | crash >\n");
  44.     }
  45.  
  46.     return 0;
  47. }
  48.  
downloadinferior.c Source code - Download voltron Source code
Related Source Codes/Software:
IGListKit - A data-driven UICollectionView framework for build... 2017-01-11
androidmvp - MVP Android Example 2017-01-11
svelte - The magical disappearing UI framework ... 2017-01-11
kcptun - A Simple UDP Tunnel Based On KCP 2017-01-11
poisontap - Exploits locked/password protected computers over ... 2017-01-10
ecma262 - Status, process, and documents for ECMA262 ... 2017-01-11
react-native-elements - React Native Elements UI Toolkit 2017-01-11
tensorflow-zh - Google new open source ai system TensorFlow Chines... 2017-01-11
forum - Blue light (the Lantern) the official BBS 2017-01-11
socketcluster - Highly scalable realtime framework ... 2017-01-11
mobile-chrome-apps - Chrome apps on Android and iOS 2017-02-20
pycrumbs - Bits and bytes of Python from the Internet 2017-02-20
drupal - Verbatim mirror of the git.drupal.org repository f... 2017-02-20
elasticsearch-head - A web front end for an elastic search cluster 2017-02-19
launchrocket - A Mac PrefPane to manage all your Homebrew-install... 2017-02-19
jquery-boilerplate - A jump-start for jQuery plugins development ... 2017-02-19
MVVMReactiveCocoa - GitBucket iOS A 2017-02-19
ios-webkit-debug-proxy - A DevTools proxy (Chrome Remote Debugging Protocol... 2017-02-19
jump.js - A modern smooth scrolling library. ... 2017-02-19
GoSublime - A Golang plugin collection for SublimeText **3**, ... 2017-02-19

 Back to top