new_line(x): New Line Character

New line character.

Declaration

Sintaxe

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 de retorno

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

Descrição

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

Exemplos

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

Resultado:

This is record 1.A
This is record 2.

Veja Também

Nenhum.