Skip to content

Commit dc42cf5

Browse files
jvdp114NGiestas
andauthored
Update test/example/logger/demo_log_text_error.f90
Co-authored-by: Ian Giestas Pauli <[email protected]>
1 parent faa1bc3 commit dc42cf5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/example/logger/demo_log_text_error.f90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,16 @@ program demo_log_text_error
2121
end do
2222
900 continue
2323

24+
contains
25+
26+
subroutine check_line(line, status, col_no)
27+
character(*), intent(in) :: line
28+
integer, intent(inout) :: status
29+
integer, intent(inout) :: col_no
30+
! scan the line for forbidden characters
31+
col_no = scan(line,".$/")
32+
! col_no > 0 means there is a forbidden character
33+
status = int(col_no > 0)
34+
end subroutine
35+
2436
end program demo_log_text_error

0 commit comments

Comments
 (0)