I'm about to convert a Fortran77 program to C and have encounter a code snippet something like this:
DIMENSION TMP(5)
DO 10 K=1, 5
10 TMP(K)=0
CALL FUNC
20 CONTINUE
STOP
END
SUBROUTINE FUNC
WRITE (*,*)'Just a test'
RETURN
END
Whats the deal with that continue?.. There is no reference to label 20 anywhere in the program, first I thought there was some nested DO loop I've missed (This snippet is just part of a bigger program ofcourse), I've rechecked this a couple of times.. Func gets called only once too..
I've come to the conclusion that that continue is just some leftover from some old loop that was removed, but the continue was forgotten or something. Or is there some reason why one should put continues here and there in a program?
DIMENSION TMP(5)
DO 10 K=1, 5
10 TMP(K)=0
CALL FUNC
20 CONTINUE
STOP
END
SUBROUTINE FUNC
WRITE (*,*)'Just a test'
RETURN
END
Whats the deal with that continue?.. There is no reference to label 20 anywhere in the program, first I thought there was some nested DO loop I've missed (This snippet is just part of a bigger program ofcourse), I've rechecked this a couple of times.. Func gets called only once too..
I've come to the conclusion that that continue is just some leftover from some old loop that was removed, but the continue was forgotten or something. Or is there some reason why one should put continues here and there in a program?