fdoc

functionleading_blankspureprivate

pure integer function leading_blanks(line)

Number of blanks at the start of line.

Arguments

NameTypeIntentAttributesDescription
linecharacter(len=*)in

the line

Result

NameTypeAttributesDescription
leading_blanksinteger

Source

Show the code
pure integer function leading_blanks(line)
    character(len=*), intent(in) :: line    !! the line
    leading_blanks = verify(line, ' ') - 1
    if (leading_blanks < 0) leading_blanks = len(line)
end function leading_blanks

Graphs

Called by