Clicky

Fortran Wiki
new_line

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

category: intrinsics