Americo Barbosa da Cunha Junior <americo.cunh...@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-h...@gcc.gnu.org or fort...@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

Reply via email to