📄 read_null_string.f90
字号:
! pr 16080, segfault on reading an empty string implicit none integer t character*20 temp_name character*2 quotes open(unit=7,status='SCRATCH') quotes = '""""' ! "" in the file write(7,*)1 write(7,'(A)')quotes temp_name = 'hello' ! make sure the read overwrites it rewind(7) read(7, *) t read(7, *) temp_name if (temp_name.ne.'') call abort end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -