new_line(x): New Line Character

New line character.

Declaración

Sintaxis

retval = new_line(x)
function new_line(c)

Argumentos

The input parameter x must be of type character. It can be a scalar or an array.

Valores devueltos

The return value is a character of length one with the new line character appended of the same kind as of x.

Descripción

new_line(x) returns the new line character. The return value is the ASCII newline character.

Tipos

Supported input parameter types is character.

function new_line(c) result(r)
character(len=1), intent(in) :: c
character(len=1) :: r
end function

Ejemplos

program intrinsics_new_line
    implicit none
	print *, 'This is record 1.'//new_line('A')//'This is record 2.'
end program

Result:

This is record 1.A
This is record 2.

Ver también

None.