Re: fortran code for 'cp' / subroutine file_copy
- From: Joe Krahn <lastname_at_niehs.nih.gov@xxxxx>
- Date: Fri, 31 Mar 2006 11:48:56 -0500
meek@xxxxxxxxxxxxxxx wrote:
In a previous article, Carsten Lemmen <c.lemmen@xxxxxxxxxxxxx> wrote:But you can still have problems if you write code that might be used on a non-POSIX system. No matter what solution you find, one good approach is have one source file containing platform/compiler dependent code so that most of the messy portability stuff is in one place.
Hi all,
I would like to issue a copy operation from within my Fortran code. I
have been using the system intrinsic, however, some compilers do not
know about this intrinsic.
There is probably a way in your compiler to make a system
call. If you want it to work on *every* compiler, then
you will run into problems with the plethora of
compiler-dependent options in the open statements.
System call is the way to go , even if you have to make
a change for each compiler.
Chris
<snip>
Joe
.
- References:
- fortran code for 'cp' / subroutine file_copy
- From: Carsten Lemmen
- RE: fortran code for 'cp' / subroutine file_copy
- From: meek
- fortran code for 'cp' / subroutine file_copy
- Prev by Date: Re: question on character-like variable defination
- Next by Date: Re: Converting fixed-to-free format
- Previous by thread: Re: fortran code for 'cp' / subroutine file_copy
- Next by thread: Re: fortran code for 'cp' / subroutine file_copy
- Index(es):
Relevant Pages
|