1struct MyStruct {
2 int before;
3 char var[5];
4 int after;
5};
6
7int
8main()
9{
10 struct MyStruct struct_arr[3] = {{112, "abcd", 221},
11 {313, "efgh", 414},
12 {515, "ijkl", 616}};
13 struct MyStruct *struct_ptr = struct_arr;
14 return struct_ptr->before; // Set a breakpoint here
15}
16

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of lldb/test/API/lang/c/parray_vrs_char_array/main.c