This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 16 bits char string from C to FORTRAN


Sorry for my mistake. I'll send the message to the appropriate mailing list.

Americo


On Fri, Apr 24, 2009 at 12:31 AM, Ian Lance Taylor <iant@google.com> wrote:
> Americo Barbosa da Cunha Junior <americo.cunhajr@gmail.com> writes:
>
>> I'm? calling a FORTRAN subroutine in a ANSI C program. The subroutine
>> has the following prototype:
>
> This message is not appropriate for the mailing list gcc@gcc.gnu.org,
> which is for gcc developers. ?This question would have been appropriate
> on gcc-help@gcc.gnu.org or fortran@gcc.gnu.org. ?Thanks.
>
>
>> I've tried to change the length of the char type in C redefining
>> CHAR_BIT constant:
>>
>> #include <limits.h>
>> #define CHAR_BIT 16
>
> Doing that does not change the size of the char type. ?Unless you are
> using an unusual embedded processor, the size of char in C is always 8.
>
> If you need a string whose characters are a different length, you need
> to use a wide character string, via L"". ?Wide characters in C is a
> general topic in C and is not specific to gcc, and this mailing list is
> not the right place to discuss them.
>
> Ian
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]