saracooper
Programmer
Hello, probably this is a very basic question, but I know very little about Fortran, I m a C programmer but have to deal with some routines in Fortran.
How does one copy a string from one CHARACTER*8 var to another ? I tried by simple assignment -
CHARACTER*8 var1
CHARACTER*8 var2
var1 = 'test1'
var2 = var1
Here actually var1 gets populated from somewhere else, var2 gets var1 value, but I am not sure one of the 2, I think var1 looses some characters. It is like after the assignment, the memory gets messed up. Any help is really appreciated. Thank u
How does one copy a string from one CHARACTER*8 var to another ? I tried by simple assignment -
CHARACTER*8 var1
CHARACTER*8 var2
var1 = 'test1'
var2 = var1
Here actually var1 gets populated from somewhere else, var2 gets var1 value, but I am not sure one of the 2, I think var1 looses some characters. It is like after the assignment, the memory gets messed up. Any help is really appreciated. Thank u