Does anyone know of an easy way to add a single backslash () to an NSString in Objective-C?
I am trying to add a backslash between each byte of addresses. But after adding and printing the output is not coming as expected.
Output:
"<IpAddress 0x00000002834809d0>" = {
FourByteAddress = "0/\0/\0/\0";
};
Expected:
"<IpAddress 0x00000002834809d0>" = {
FourByteAddress = "0\0\0\0";
};
1
0
763