Re: Reading from an NSInputStream
Re: Reading from an NSInputStream
- Subject: Re: Reading from an NSInputStream
- From: p3consulting <email@hidden>
- Date: Sun, 23 Nov 2003 10:31:18 +0100
uint8_t *buf;
unsigned int *numBytes;
[stream getBuffer:&buf length:numBytes];
for (int i = 0; i < *numBytes; i++) {
printf("%c", buf[i]);
}
}
}
Should be
uint8_t *buf;
unsigned int numBytes;
[stream getBuffer:&buf length:&numBytes];
for (int i = 0; i < numBytes; i++) {
Pascal Pochet
P3 Consulting
email@hidden
http://www.p3-consulting.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.