In my C program, I have an array char *num1 = "123"
.
When I use p num1
in LLDB, I get: (char *) 0x190bd8ab8: "xffffffe0x03x13xffffffaaxfffffffd{Axffffffa9xfffffff4Oxffffffc2xffffffa8xffffffffx0f_xffffffd6x7f#x03xffffffd5xfffffff8_xffffffbcxffffffa9xfffffff6Wx01xffffffa9xfffffff4Ox02xffffffa9xfffffffd{x03xffffffa9xfffffffdxffffffc3"
I tried printing the individual indices using p num1[0]
. But I get this: (char) 'xe0'
Any thoughts?
MacOS Sonoma 14.5
M2 (Apple Silicon)
Version: lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Thanks