Re: Accessing 8-bit bytes from a file using Cocoa
Re: Accessing 8-bit bytes from a file using Cocoa
- Subject: Re: Accessing 8-bit bytes from a file using Cocoa
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 1 May 2006 07:21:06 -0600
On May 1, 2006, at 6:17 AM, Phil Faber wrote:
At the moment, I'm using C coding:
(fread(&oneByte,1,1,fp1) [where oneByte is defined as a 'char']
You need to use an unsigned char, not a signed char. Or, better yet,
use a uint8_t.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden