Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character, | intent(in) | :: | command |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | i |
integer function nsp(command)
implicit none
character(*), intent(in) :: command
integer :: i
do i=1,len(command)
if (command(i:i) /= ' ') then
nsp = i
return
end if
end do
nsp = 0
end function nsp