Date: Tue, 10 Mar 2009 23:46:41 +0100 From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= <gabor@FreeBSD.org> To: d@delphij.net Cc: Ed Schouten <ed@80386.nl>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: fgetc doubts Message-ID: <49B6EDD1.5070602@FreeBSD.org> In-Reply-To: <49B6E895.9040701@delphij.net> References: <49B6DC95.9070607@FreeBSD.org> <20090310215512.GI31961@hoeg.nl> <49B6E30F.7020205@FreeBSD.org> <49B6E895.9040701@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Xin LI escribió: > > Is binbuf[] an array of char or unsigned char? If it's signed char then > you may want something like ch = binbufptr[0] & 0xff I guess. > Hi, thanks, it is now satrting to work, binbuf was of signed int. But now, I've got one more of that strange character at the end of the output, while it's not really there. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49B6EDD1.5070602>