root/user/uw-testbin/segments/segments.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 /*
   2  * Demonstrate different segments.
   3  */
   4 #include <unistd.h>
   5 
   6 #define N   (200)
   7 
   8 int x = 0xdeadbeef;
   9 int t1;
  10 int t2;
  11 int t3;
  12 int array[4096];
  13 char const *str = "Hello World\n";
  14 const int z = 0xabcddcba;
  15 
  16 struct example {
  17   int ypos;
  18         int xpos;
  19 };
  20 
  21 int
  22 main()
  23 {
  24         int count = 0;
  25         const int value = 1;
  26         t1 = N;
  27         t2 = 2;
  28         count = x + t1;
  29         t2 = z + t2 + value;
  30 
  31         reboot(RB_POWEROFF);
  32         return 0; /* avoid compiler warnings */
  33 }

/* [<][>][^][v][top][bottom][index][help] */