Skip to main content

NumStrings

This function returns the number of substrings inside a string which are separate by one or more spaces.

Interface

INTERFACE
MODULE PURE FUNCTION numStrings(chars) RESULT(Ans)
CHARACTER(*), INTENT(IN) :: chars
INTEGER(I4B) :: ans
END FUNCTION numStrings
END INTERFACE