• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <stdio.h>
2 #include <stdint.h>
3 #include <stdlib.h>
4 
5 struct foo
6 {
7   uint8_t   first_val;
8   uint32_t  second_val;
9   uint64_t  third_val;
10 };
11 
main()12 int main ()
13 {
14   int val = 100;
15   struct foo mine = {55, 5555, 55555555};
16   struct foo *ptr = (struct foo *) malloc (sizeof (struct foo));
17   ptr->first_val = 66;
18   ptr->second_val = 6666;
19   ptr->third_val = 66666666;
20 
21   // Stop here and set values
22   printf ("Val - %d Mine - %d, %d, %llu. Ptr - %d, %d, %llu\n",
23           val,
24           mine.first_val, mine.second_val, mine.third_val,
25           ptr->first_val, ptr->second_val, ptr->third_val);
26 
27   // Stop here and check values
28   printf ("This is just another call which we won't make it over %d.", val);
29   return 0; // Set a breakpoint here at the end
30 }
31