9.197. NEW_LINE

9.197 NEW_LINE — New line character

Description:
NEW_LINE(C) returns the new-line character.
Standard:
Fortran 2003 and later
Class:
Inquiry function
Syntax:
RESULT = NEW_LINE(C)
Arguments:
C The argument shall be a scalar or array of the type CHARACTER.
Return value:
Returns a CHARACTER scalar of length one with the new-line character of the same kind as parameter C.
Example:
program newline
  implicit none
  write(*,'(A)') 'This is record 1.'//NEW_LINE('A')//'This is record 2.'
end program newline

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/NEW_005fLINE.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部