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 | |
12 | int main () |
13 | { |
14 | int val = 100; |
15 | struct foo mine = {55, 5555, 55555555}; |
16 | struct foo *ptr = (struct foo *) malloc (size: 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 (format: "Val - %d Mine - %d, %d, %llu. Ptr - %d, %d, %llu\n" , val, |
23 | mine.first_val, mine.second_val, mine.third_val, |
24 | ptr->first_val, ptr->second_val, ptr->third_val); |
25 | |
26 | // Stop here and check values |
27 | printf (format: "This is just another call which we won't make it over %d." , val); |
28 | return 0; // Set a breakpoint here at the end |
29 | } |
30 | |