Re: Returning int pointer ?
Malcolm McLean wrote:
And the chars in the basic execution set must always be positive.
This forces EBCDIC based systems to used unsigned char as the type
for char. on byte machines.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Malcolm McLean wrote:
"Phil Carmody" <thefatphil_dem unged@yahoo.co. ukwrote:
>
>>
>I thought character types were specifically excluded from trap
>representation s?
>
unsigned char is, signed char not.
However signed char is guaranteed 8 bits, so in fact it can hold
ASCII codes. Plain char must be an alias for either signed char
or unsigned char. So Keith Thompson actually squeaks through.
>
>>You assume that a char holds a character in the execution
>>character set. If it doesn't you theoretically risk trap
>>representatio ns.
>>character set. If it doesn't you theoretically risk trap
>>representatio ns.
>I thought character types were specifically excluded from trap
>representation s?
unsigned char is, signed char not.
However signed char is guaranteed 8 bits, so in fact it can hold
ASCII codes. Plain char must be an alias for either signed char
or unsigned char. So Keith Thompson actually squeaks through.
This forces EBCDIC based systems to used unsigned char as the type
for char. on byte machines.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Comment