label_width Function

private pure function label_width(construct)

Length of the text of construct_label.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: construct

one of the C_* constants

Return Value integer


Source Code

pure integer function label_width(construct)
    !! Length of the text of `construct_label`.
    integer, intent(in) :: construct   !! one of the `C_*` constants
    label_width = 1
    if (construct >= 0 .and. construct <= NCONSTRUCTS) label_width = len_trim(LABELS(construct))
end function label_width