[Scilab-Dev] Fortran / C files
Collette Yann
ycollet at freesurf.fr
Tue Jan 13 23:01:41 CET 2009
Hello,
I was working on a C++ class which handles fortran format descriptor.
This class is nearly working.
The reason I would like to translate this function into C was first to
allow write to support multiple format (currently, either you print an
interger or a float or a char, but you can't mix).
And for such function, I feel C is more "readable" than fortran. Fortran
is really efficient, but mostly for numerical computation (that's my
point of view :-)).
Maybe the best approach is to write another "write" function to see what
can be done in C ...
YC
Serge Steer a écrit :
> Collette Yann a écrit :
>
>> Hello,
>>
>> I am currently looking at the 'write' function. I would like to
>> rewrite it in C/C++.
>> I've got a question: How do I translate a fortran file descriptor
>> (unit ...) into a C file descriptor.
>>
>> YC
>>
>>
> This what is done by f2c using a specific library. I do not know if this
> library is portable or not.
> The unit is not the only problem there is also format, Input/output line
> handling, binary and direct access...
>
> The reason for translating such kind of code to C is not clear for me...
>
> Serge Steer
>
>
More information about the dev
mailing list