[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] How do I declare a character pointer returned from a "C" funct
From: |
gaius |
Subject: |
Re: [Gm2] How do I declare a character pointer returned from a "C" function? |
Date: |
Tue, 31 Aug 2010 05:21:42 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
"Fischlin Andreas" <address@hidden> writes:
> POINTER TO ARRAY [0..n] OF CHAR;
>
> However, I have little idea how to define n. MAX(INTEGER)? n should
> be chose to be MIN(n_gm2, n_C), i.e. a compiler specific number.
Hi Andreas,
both MIN(INTEGER) and MAX(INTEGER) map onto C's min integer and max
integer. The data types "INTEGER" and "int" are the same. Other
relationships also exist between the two languages (in the GCC world):
http://www.nongnu.org/gm2/gm2.html#SEC8
regards,
Gaius
>
> Regards,
> Andreas
>
>
> ETH Zurich, Prof. Dr. Andreas Fischlin, Systems Ecology
> CHN E 21.1, Universitaetstrasse 16, 8092 Zurich, SWITZERLAND
> Tel +41 44 633-6090, Fax +41 44 633-1136, http://www.sysecol.ethz.ch/
>
> On 31/Aug/2010, at 02:29 , john o goyo wrote:
>
>> Gaius:
>>
>> I am investigating the failure of TermFile and need to use a "C" funciton.
>>
>> In particular, I am calling a function that returns a character pointer.
>> How do I declare this in the definition module for gm2?
>>
>> john
>>
>>
>> _______________________________________________
>> gm2 mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/gm2
>
>
> _______________________________________________
> gm2 mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gm2