On 05/27/2010 04:22 AM, Muhammad Akbar wrote:
Unfortunately, here:
> int i; long int noeof = 0;
and here:
> noeof = 0xffffffffffffffff;
your C routine makes assumptions about the representation of .TRUE. and
.FALSE. on the Fortran side, which tend to differ between different
compilers.
You'd better make getkey a simple integer routine on the Fortran side
and explicitly test for values (e.g. 0 for success and 1, or -1, for
failure).
Kind regards,
--
Toon Moene - e-mail: toon@xxxxxxxxx - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html#Fortran