02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

Description<br />

Scan a string for any one of the characters in a set of characters.<br />

Class<br />

Elemental function.<br />

Arguments<br />

STRING must be of type character.<br />

SET must be of type character with the same kind type parameter as STRING.<br />

BACK (optional) must be of type logical.<br />

Result type/<br />

type parameters<br />

Default integer.<br />

Result value<br />

Case 1 If BACK is absent or is present with the value .FALSE. and if STRING<br />

contains at least one character that is in SET, the value of the result is the<br />

position of the leftmost character of STRING that is in SET.<br />

Case 2 If BACK is present with the value .TRUE. and if STRING contains at least one<br />

character that is in SET, the value of the result is the position of the<br />

rightmost character of STRING that is in SET.<br />

Case 3 The value of the result is zero if no character of STRING is in SET or if the<br />

length of STRING or SET is zero.<br />

SECNDS(X)<br />

Description<br />

Return the number of seconds that have elapsed since midnight, less the value of the<br />

argument.<br />

Class<br />

Elemental nonstandard function.<br />

582<br />

Chapter 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!