Mercurial > hg > octave-lyh
view libcruft/ranlib/lennob.f @ 13727:478efc95cb7a
Test unordered_map header location and namespace.
* configure.ac: Add tests for <unordered_map> and <tr1/unordered_map>.
Add test to determine whether std::tr1 namespace is required for unordered_map.
* rand.cc: Use tests result.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 20 Oct 2011 12:51:31 +0100 |
parents | 30c606bec7a8 |
children |
line wrap: on
line source
INTEGER FUNCTION lennob(string) IMPLICIT INTEGER (a-p,r-z),LOGICAL (q) C********************************************************************** C C INTEGER FUNCTION LENNOB( STRING ) C LENgth NOt counting trailing Blanks C C C Function C C C Returns the length of STRING up to and including the last C non-blank character. C C C Arguments C C C STRING --> String whose length not counting trailing blanks C is returned. C C********************************************************************** CHARACTER*(*) string end = len(string) DO 20,i = end,1,-1 IF (.NOT. (string(i:i).NE.' ')) GO TO 10 lennob = i RETURN 10 CONTINUE 20 CONTINUE lennob = 0 RETURN END