Re: Reading external variables from a library (BIND)
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Reading external variables from a library (BIND)         

Group: comp.lang.fortran · Group Profile
Author: Gary Scott
Date: Sep 17, 2008 05:40

Arjen Markus wrote:
> On 17 sep, 08:37, Arjen Markus wrote:
>
>>On 16 sep, 17:06, glen herrmannsfeldt ugcs.caltech.edu> wrote:
>>
>>
>>
>>
>>
>>
>>>Arjen Markus wrote:
>>
>>>(snip)
>>
>>>>The easiest way to deal with errno, I'd say, is create a
>>>>small C function along these lines:
>>
>>>>void get_errno( int &errno_value ) {
>>>> *errno_value = errno;
>>>>}
>>
>>>or
>>
>>>int get_errno() {
>>> return errno;
>>
>>>}- Tekst uit oorspronkelijk bericht niet weergeven -
>>
>>>- Tekst uit oorspronkelijk bericht weergeven -
>>
>>I did not do it that way, because a function without arguments
>>can be optimised away - cf. the design of random_number.
>>
>>Regards,
>>
>>Arjen- Tekst uit oorspronkelijk bericht niet weergeven -
>>
>>- Tekst uit oorspronkelijk bericht weergeven -
>
>
> And furthermore, a function without arguments is so, well,
> unmathematical :).

or "win32ish"
>
> Regards,
>
> Arjen

--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows
it can't be done.

-- Henry Ford
no comments
diggit! del.icio.us! reddit!