![]() |
What's wrong with this code: arrays?
Code:
- (void) sendMessage:(int) type data:(char[]) data length:(int)lengthSo, I pass 0x90 to 'type', and the printf gives me FFFFFF90. If I printf message[1] or [2], I get 7 and FFFFFF84, respectively. They should, of course, be empty. So, what the hell is going on? I feel I have made some kind of rookie mistake. |
Re: What's wrong with this code: arrays?
PS: I should mention that if I replace the message[0] = type with message[0] = 0x90, it works fine.
|
| All times are GMT +5.5. The time now is 23:59. |