NEW_LINE (The GNU Fortran Compiler)

### 8.214 `NEW_LINE` — New line character ¶

Synopsis:

  `RESULT = NEW_LINE(C)`

Description:

  `NEW_LINE(C)` returns the new-line character.

Class:

  Inquiry function

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

Standard:

  Fortran 2003 and later